mikeash.com: just this guy, you know?

Posted at 2010-04-13 16:25 | RSS feed (Full text feed) | Blog Index
Next article: Friday Q&A 2010-04-16: Implementing Fast Enumeration
Previous article: Friday Q&A 2010-04-09: Comparison of Objective-C Enumeration Techniques
Tags: blocks continuation objectivec
An Objective-C Continuations Library
by Mike Ash  

A couple of months ago I wrote about using Continuation Passing Style in Objective-C as an alternative technique for returning errors from methods. The major downside to that technique is that it integrates poorly with Cocoa, since Cocoa isn't written to use CPS. Jordan Breeding has spent the intervening time building up an impressive CPS adapter library which allows converting any Cocoa NSError ** call into CPS style with virtually no work. Source code and extensive examples are available, and I encourage you to check it out.

Did you enjoy this article? I'm selling whole books full of them! Volumes II and III are now out! They're available as ePub, PDF, print, and on iBooks and Kindle. Click here for more information.

Comments:


Comments RSS feed for this page

Add your thoughts, post a comment:

Spam and off-topic posts will be deleted without notice. Culprits may be publicly humiliated at my sole discretion.

Name:
The Answer to the Ultimate Question of Life, the Universe, and Everything?
Comment:
Formatting: <i> <b> <blockquote> <code>.
NOTE: Due to an increase in spam, URLs are forbidden! Please provide search terms or fragment your URLs so they don't look like URLs.
Hosted at DigitalOcean.