Caret in objective C
What does the caret in objective C mean?
from Mac Dev Center
- Setting a UIImage to a UIBarButton item
- Plist Array to NSArray no objects
- Reading off annotations of MKMapViews in NSArray
- Detecting iOS orientation change instantly
- Convert PinchRecognizer Objective-C code to Swift
- “Non-portable path to file ”File.h“; specified path differs in case from file name on disk” warning in bridging header after updating to Xcode 8.3
3 Solutions Collect From Internet About “Caret in objective C”
It depends on the context. In the example you show, it’s used to denote a Block. The caret symbol is also the bitwise XOR operator in C-based languages — that’s what most programmers would identify it as, so it’s good to understand that it can be both depending on where it appears, much like
And while we’re suggesting references, one simply has to include Apple’s official Blocks reference.
The caret represents a block or a closure which carries around or contains the lexical scope. They are similar to blocks in ruby. An excellent reference can be found here.
Like ennuikiller said, it indicates a block. If you want to learn more, Ars Technica had an excellent in-depth review of Snow Leopard that described not only blocks and closures, but also Grand Central Dispatch and all the other new technologies in Mac OS X 10.6. Highly recommended.
- How to prevent a modal UIImagePickerController from rotating?
- Calling delegate function from AppDelegate not working
- Is there a simple way of converting an ISO8601 timestamp to a formatted NSDate?
- Shake a UIView … BUT using UIKit Dynamics
- Changing iPhone's date and time
- How to convert Hex to Binary iphone
- Appending to an empty array giving error
- Find by Protocol in Swift
- how to print value of object in an array in swift, not its location
- Core-Data willSave: method
- How to upload files in a UIWebView on an iPad?
- Keychain won't unlock from Jenkins script unless user logged in
- How to align UILabel's baseline to the bottom of a UIImageView?
- Why does UIViewController extend under UINavigationBar, while UITableViewController doesn't?
- Objective C: Sending arguments to a method called by a UIButton