Nothing! Dot-notation is “syntactic sugar” introduced in Objective-C 2.0. In fact, the compiler converts foo.property to [foo property] during compile-time, so they compile to exactly the same thing.
It’s simply a matter of which you prefer.
More Related Contents:
- What’s the Best Way to Shuffle an NSMutableArray?
- Use of alloc init instead of new
- Replacement for deprecated sizeWithFont: in iOS 7?
- How do I implement an Objective-C singleton that is compatible with ARC?
- invalid context 0x0 under iOS 7.0 and system degradation
- Trouble with floats in Objective-C
- Make a float only show two decimal places
- self.variable and variable difference [duplicate]
- How to use a Objective-C #define from Swift
- NSInvalidUnarchiveOperationException: Could not instantiate class named NSLayoutConstraint
- Run NSRunLoop in a Cocoa command-line program
- NSFetchedResultsController with relationship not updating
- iOS start Background Thread
- How to track down cause of SIGABRT
- Objective-C: @class Directive before @interface?
- Valid use of accessors in init and dealloc methods?
- Decode JSON to NSArray or NSDictionary
- Error: Protocol not available, dumping backtrace [duplicate]
- What happens if two ObjC categories override the same method?
- Reading samples via AVAssetReader
- Objective-C: Modulo bias
- Class extension vs class category
- Converting NSString to NSDictionary / JSON
- sizeWithFont method is deprecated. boundingRectWithSize returns an unexpected value
- Properties and Instance Variables in Objective-C
- Chaining Core Animation animations
- Why does NSArray arrayWithObjects require a terminating nil?
- What’s the difference between declaring a variable “id” and “NSObject *”?
- viewDidLoad in NSViewController?
- Listen to a value change of my text field