Reputation: 1628
I have been trying to understand the notation for objective C its using the CAP(^) character along with the functions.
Can someone please enlighten me with the fact what this means and what this is used for.
Thanks Jay
EG: ^(void)
Upvotes: 1
Views: 171
Reputation: 111259
They are called "blocks", which are closures for Objective C.
More about closures in general: http://en.wikipedia.org/wiki/Closure_%28computer_science%29
More about objective C blocks: http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html
Upvotes: 2
Reputation: 11839
this notation is used for block in iOS. You can check more details on - http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/Blocks/Articles/00_Introduction.html
Upvotes: 5