• 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: How?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How?


  • Subject: Re: How?
  • From: Bruce Sturgen <email@hidden>
  • Date: Mon, 12 Nov 2001 12:45:54 -0600

In PB, select the Targets tab.
Select your app in the targets.
Select Application Settings.
Scroll down to Document Types.
Select a Document Type.
The Document Class field shows the class to load for the Document Type.
Now, go back to the Files tab.
Find the .m file for your document.
Locate the message windowNibName:
This shows Cocoa what NIB file to load.

So, given a document type, the Document class is loaded, which is then queried for the appropriate NIB file.

At least, I think that's how it's done.

On Monday, November 12, 2001, at 12:23 PM, email@hidden wrote:

Just wondering, probably not important, but it drives me nuts not knowing:
how does a document-based Cocoa application with nothing in the MainMenu.
nib other than the MainMenu itself know how to open the window in MyDocument.nib? I can't see any code that would explain this.

Brian E. Howard
Cocoa Cult Central
trying to understand
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev



_________________________________
Bruce E. Sturgen
Think Different!
ICQ: 120302101 AIM: bsturg3n

Politicians and diapers have one thing in common. They should both be changed regularly and for the same reason.


References: 
 >How? (From: email@hidden)

  • Prev by Date: Re: High-level overview of Cocoa - thoughts from a newbie
  • Next by Date: Localized dates and times
  • Previous by thread: Schools?
  • Next by thread: Localized dates and times
  • Index(es):
    • Date
    • Thread