bits about life, coding and stuff
ObjC 2.1 (Snow Leopard) now has the shiny new BLOCKS feature. Ya know, like in closure, you can pass not only variables but whole blocks of code to functions. That’s pretty handy sometimes. But SL only? Suxx… So the people from plausible blog backported blocks from the gcc into leopard!
It’s still under development, it uses gcc and not clang (which is IMHO much better) … but here you go, blocks in 10.5. And there’s another cool upgrade for your toolchain, FunctionalKit, which uses blocks to create features like map or filter.
Related posts:
1 Response to Objective C Blocks with Leopard 10.5 and iPhone 3.0
» Blocks on the iPhone – PSAlertView petersteinberger.com
March 17th, 2010 at 3:56 pm
[...] It took a while to get my head around blocks. And it didn’t help that they are not officially available on the iPhone. But savvy devs from Plausible Labs back-ported the GCC extensions that were added to support blocks to the iPhone. And it’s AppStore-safe and they are developing it actively, now adapting it for the iPad. (I already blogged about it) [...]