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
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.
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.