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

NSDocument and window ivar


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

In the documentation for NSDocument there is a method called - (void)setWindow:(NSWindow*)aWindow, for which aWindow is described as "The window to which the receiver’s window outlet points."

Furthermore, if I ctrl-click on the File's Owner in MyDocument.xib (a document-based app), which is of class MyDocument (subclass of NSDocument), it *does* show the window outlet there and it *does* show it pointing to the window.

But I cannot pass messages to the window variable. For example, I cannot send it the "setTitle:" message.

Have I gone bonkers? Am I doing something wrong? For now I just added another IBOutlet for NSWindow in MyDocument class and have that connected up, but this seems like a kludge to have two outlets pointing to the same object.

Any words of wisdom?

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: Chris Suter <email@hidden>
    • Re: NSDocument and window ivar
      • From: Andy Lee <email@hidden>
    • Re: NSDocument and window ivar
      • From: Alex Heinz <email@hidden>
  • Prev by Date: Working with mathematical errors
  • Next by Date: Re: NSDocument and window ivar
  • Previous by thread: Re: Working with mathematical errors
  • Next by thread: Re: NSDocument and window ivar
  • Index(es):
    • Date
    • Thread