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

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


  • Subject: Where does an NSDocument get it's initial NSWindowController from?
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Tue, 24 May 2005 20:01:53 +0100


Where does an NSDocument get it's initial NSWindow from?

This code:


- (NSWindow*) window { // method of NSDocument subclass NSArray* a = [self windowControllers]; NSWindowController* wc = [a objectAtIndex:0]; NSWindow* w = [wc window]; return w; }

Does not work, because the NSArray contains no elements. So, where does the NSWindowController supposed to come from, then?

Does NSDocument have an NSWindowController automatically when it is loaded from the nib? Or do I have to add one via code, or what?

--
elfdata.com/plugin/ Industrial strength string processing, made easy.

"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
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


  • Prev by Date: Re: Newbie: Chaining CIFilters together?
  • Next by Date: Is it possible to use IB and Cocoa from within CodeWarrior?
  • Previous by thread: Re: xCode fetch predicate view
  • Next by thread: Re: Where does an NSDocument get it's initial NSWindowController from?
  • Index(es):
    • Date
    • Thread