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 a whole book full of them. It's available for iBooks and Kindle, plus a direct download in PDF and ePub format. It's also available in paper for the old-fashioned. Click here for more information.

Comments:

Kentzo at 2010-10-16 16:04:12:
http://www.jordanbreeding.com/blog/2010/4/8/introducing-continuations-for-objective-c.html isn't available anymore.

mikeash at 2010-10-16 16:14:49:
Looks like it's now here for some reason:

http://www.jordanbreeding.com/blog/2010/4/7/introducing-continuations-for-objective-c.html


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:
Web site:
Comment:
Formatting: <i> <b> <blockquote> <code>. URLs are automatically hyperlinked.
Hosted at DigitalOcean.