One Quickie


Block Typedef (Blocks->General)
I can never remember the syntax for function pointer typedefs, and therefore can never remember the syntax for block typedefs:
typedef CGRect (^GroovyBlock)(NSInteger spoon, NSString *waffle);
Creates a typedef called GroovyBlock that returns a CGRect and takes an integer and a string.



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com