There are a few things newly added to Objective-C in Snow Leopard. Actually they were added with LLVM and others before the Snow Leopard, but they seem to start to get attention recently as far as I know.
One of those is closure, or so called block.
So, I would like to put some links for block.
- Programming with C Blocks on Apple Devices
- Mac Fanatic ” Blocks: Coming to Objective-C Soon
- Cocoa for Scientists (Part XXVII): Getting Closure with Objective-C
Let’s read about what they are and how they can be used. After doing so, let’s think about the nature of the block.
(To me, it looks like function pointer.)