Quantcast
Channel: blocks
Viewing all articles
Browse latest Browse all 11

8 Ways to use Blocks in Snow Leopard

$
0
0

Snow Leopard introduced Blocks. They are pieces of code that can be saved and passed around, making ObjC even more dynamic. They capture the scope around them, that is the local variables of your functions, and let you use it. They take arguments you specify and let you call them anytime. Blocks are like function pointers, except they don't suck. Here's a few use cases for this new beast.


Viewing all articles
Browse latest Browse all 11

Latest Images

Trending Articles





Latest Images