• 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: NSDocument and window ivar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument and window ivar


  • Subject: Re: NSDocument and window ivar
  • From: Todd Heberlein <email@hidden>
  • Date: Sun, 27 Jul 2008 19:53:35 -0700


On Jul 27, 2008, at 7:34 PM, Alex Heinz wrote:

Don't you want NSDocuments -(NSWindow*)windowForSheet: rather than - (void)setWindow:? I assume you're trying to retrieve the object rather than set it.

That may not be your problem, but it's the only thing I can think of

I was trying [window setTitle: @"blah"]; (or something like this), but the compiler wouldn't let me send the setTitle message to the "window" variable.


I guess I shouldn't be terribly surprised since the NSDocument can actually have multiple windows associated with it, but that "window" outlet (shown when ctrl-clicking the File's Owner) was just screaming to me "use me".

Todd

_______________________________________________

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


  • Follow-Ups:
    • Re: NSDocument and window ivar
      • From: Alex Heinz <email@hidden>
References: 
 >NSDocument and window ivar (From: Todd Heberlein <email@hidden>)
 >Re: NSDocument and window ivar (From: Alex Heinz <email@hidden>)

  • Prev by Date: Re: Working with mathematical errors
  • Next by Date: Re: NSDocument and window ivar
  • Previous by thread: Re: NSDocument and window ivar
  • Next by thread: Re: NSDocument and window ivar
  • Index(es):
    • Date
    • Thread