March 2012
Intermediate to advanced
590 pages
22h 48m
English
We should mention an alternative syntax for sending accessor messages to an object called dot syntax:
// Following two lines are exactly equivalent int value = [item valueInDollars]; int value = item.valueInDollars; // Following two lines are exactly equivalent [item setValueInDollars:5]; item.valueInDollars = 5;
We have reservations about Objective-C newcomers using dot syntax. We think it hides the fact that you are actually sending a message and can be confusing. Once you are comfortable with Objective-C, it is totally okay ...
Read now
Unlock full access