Re: How did I miss this?
Re: How did I miss this?
- Subject: Re: How did I miss this?
- From: mmalc crawford <email@hidden>
- Date: Sun, 07 Sep 2008 20:23:29 -0700
On Sep 7, 2008, at 7:01 PM, Phil wrote:
The sub-section on "Incorrect Use", also explains that you shouldn't
use this syntax if it's not on a declared property (and
NSViewController doesn't have any).
I'm not sure where you got this from?
It is certainly not incorrect to use the dot syntax if there is not a
declared property.
The introduction states:
"Objective-C provides a dot (.) operator that offers a compact and
convenient syntax you can use as an alternative to square bracket
notation ([]s) to invoke accessor methods."
Declared Properties are mentioned later:
"Accessing a property property calls the get method associated with
the property (by default, property) and setting it calls the set
method associated with the property (by default, setProperty:). You
can change the methods that are invoked by using the Declared
Properties feature (see “Declared Properties”)."
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden