Joe Osborn’s OSFoundation framework adds blocks to Objective-C. The context for the block is passed in manually, and the code is specified as a string that’s interpreted at runtime. Chris Kane mentions that you can do something similar using GCC 3.1’s nested functions and statement expressions. Blocks created in this way have lexical scope, but … Continue reading Blocks in Objective-C
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed