Objective C Blocks with Leopard 10.5 and iPhone 3.0

4 Oct
2009

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. Blocks on the iPhone – PSAlertView
  2. Fix Home/End on Terminal.app in Leopard/Snow Leopard
  3. Open Source iPhone Apps
  4. Detect conflicting Objective C category methods
  5. HowTo: AdHoc distributing an iPhone app

1 Response to Objective C Blocks with Leopard 10.5 and iPhone 3.0

Avatar

» 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) [...]

Comment Form

top

Switch to our mobile site