• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (Newbie) How do Multiple NSWindowControllers find MyDocument?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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>)

  • Prev by Date: Re: Target change problem
  • Next by Date: accessing netinfo db from cocoa?
  • Previous by thread: Re: (Newbie) How do Multiple NSWindowControllers find MyDocument?
  • Next by thread: Simple Array of Strings Binding Question
  • Index(es):
    • Date
    • Thread