NSBlog
"A failure in the hot air department"
Showing entries tagged "continuation". Full blog index.
An Objective-C Continuations Library
at 2010-04-13 16:25
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.