• 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: Where does an NSDocument get it's initial NSWindowController from?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where does an NSDocument get it's initial NSWindowController from?


  • Subject: Re: Where does an NSDocument get it's initial NSWindowController from?
  • From: Cameron Hayne <email@hidden>
  • Date: Tue, 24 May 2005 21:18:15 -0400


On 24-May-05, at 7:42 PM, Theodore H. Smith wrote:

My main nib file for the document is MyDocument.nib. I have this code defined:

- (NSString *)windowNibName {
    return @"MyDocument";
}

According to the docs, this should be working already. But it does not. This is strange.

If I recall correctly, what you mean by not working is that the array returned from NSDocument method 'windowControllers' is empty. Is suspect this is because you are invoking it in the wrong place - before the NIB has been loaded. You probably want to move most of your code into 'windowControllerDidLoadNib:'


--
Cameron Hayne
email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Where does an NSDocument get it's initial NSWindowController from? (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Re: "Reveal Drawer" button in title bars
  • Next by Date: RE: "Reveal Drawer" button in title bars
  • Previous by thread: Where does an NSDocument get it's initial NSWindowController from?
  • Next by thread: Is it possible to use IB and Cocoa from within CodeWarrior?
  • Index(es):
    • Date
    • Thread