Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (Newbie) How do Multiple NSWindowControllers find MyDocument?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >(Newbie) How do Multiple NSWindowControllers find MyDocument? (From: John Velman <email@hidden>)
 >Re: (Newbie) How do Multiple NSWindowControllers find MyDocument? (From: Quincey Morris <email@hidden>)
 >Re: (Newbie) How do Multiple NSWindowControllers find MyDocument? (From: John Velman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.