On Mon, Sep 8, 2008 at 1:25 PM, John Murphy <[EMAIL PROTECTED]> wrote: > I just released the the view on NSViewController objects can be accessed with > dot syntax, i.e., self.view instead of [self view]. > Has this always been the case? I don't see any listing of "Properties" in > documentation. > I'm hitting myself for not discovering it sooner. >
This is accidental, from the way the compiler translates "self.view" into "[self view]". Properties are just syntactic sugar. The documentation on the dot syntax explains this: <http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_2_section_3.html#//apple_ref/doc/uid/TP30001163-CH11-SW17> 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). Phil _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]