문제

What are some good suggested resources for learning about blocks and GCD in Mac OS X and iOS

도움이 되었습니까?

해결책

I would start with Apple's Blocks Programming Topics document or with Programming with Blocks on Apple Devices. As gs mentioned, also check out Mike Ash's articles (and also subscribe to his RSS feed, as I'm sure more blocks-related posts will come up):

다른 팁

There is a great introduction at bbum's weblog:
Basic Blocks

Mike Ash has written two articles about blocks in his blog:

  1. Friday Q&A 2008-12-26
  2. Friday Q&A 2009-08-14: Practical Blocks

In a third article he wrote about Grand Central Dispatch, which is also using blocks:
Friday Q&A 2009-08-28: Intro to Grand Central Dispatch, Part I: Basics and Dispatch Queues

This is a good introduction, and explains how to use a gcc patch to experiment with blocks under Leopard too:

Blocks Examples: NSOperationQueue and UIActionSheet

If you're willing to pay the $300, the WWDC Mac session videos include several sessions on blocks and Grand Central Dispatch. The new APIs made possible by using blocks are also scattered throughout the remaining sessions that describe what's new in Snow Leopard.

Adding a bit more to my own question.

Blocks and GCD have been around for a couple of years now, so the online docs have been supplemented by other online resources. Even some of the iOS teaching books cover the subject.

However, the new book by Mark Dalrymple Advanced Mac OS X Programming has a couple of deeper chapters on Blocks and GCD that are of interest.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top