用于学习块的建议资源
有哪些推荐的资源可以帮助您了解 Mac OS X 和 iOS 中的块和 GCD
What are some good suggested resources for learning about blocks and GCD in Mac OS X and iOS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我将从苹果的 块编程主题文档或在 Apple 设备上使用块进行编程 。正如 gs 提到的,另请查看 Mike Ash 的文章(并订阅他的 RSS 提要,因为我确信将会出现更多与块相关的帖子):
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):
bbum 的博客上有一个很棒的介绍:
基本块
There is a great introduction at bbum's weblog:
Basic Blocks
Mike Ash 在他的博客中写了两篇关于区块的文章:
在第三篇文章中,他写了有关 Grand Central Dispatch 的文章,该文章也使用了块:
星期五问答 2009-08-28:Grand Central Dispatch 简介,第一部分:基础知识和调度队列
Mike Ash has written two articles about blocks in his blog:
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
这是一个很好的介绍,并解释了如何使用 gcc 补丁在 Leopard 下试验块:
块示例:NSOperationQueue 和 UIActionSheet
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
如果您愿意支付 300 美元,WWDC Mac 会议视频包含多个会议在街区和中央调度中心。通过使用块而实现的新 API 也分散在描述 Snow Leopard 新增功能的剩余会话中。
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.
对我自己的问题添加一点内容。
块和 GCD 已经存在几年了,因此在线文档已经由其他在线资源进行了补充。甚至一些 iOS 教学书籍也涵盖了该主题。
然而,Mark Dalrymple 的新书高级 Mac OS X 编程 有几个关于块和 GCD 的更深入的章节,值得关注。
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.