Re: (Newbie) How do Multiple NSWindowControllers find MyDocument?
Re: (Newbie) How do Multiple NSWindowControllers find MyDocument?
- Subject: Re: (Newbie) How do Multiple NSWindowControllers find MyDocument?
- From: "Kyle Sluder" <email@hidden>
- Date: Sun, 31 Aug 2008 03:43:25 -0400
On Sat, Aug 30, 2008 at 10:47 PM, John Velman <email@hidden> wrote:
> Thanks. I think the self.document method you describe will do it for me.
> This is part of the syntax (and a relation) that I'd missed. So much
> to learn!
self.document is a dot-syntax accessor, which the compiler seamlessly
translates to [self document]. This is convenient when you do
something like self.document.myProperty, because it saves you two
levels of square brackets. This is a new feature of Objective-C 2.0,
but is nothing more than syntactic sugar.
--Kyle Sluder
_______________________________________________
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