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)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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