Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nib loading question with an Document based app...



This is the kind of thing you should put in delegate for NSApplication, maybe in the applicationDidFinishLaunching: method.

file:///System/Library/Frameworks/AppKit.framework/Versions/C/ Resources/English.lproj/Documentation/Reference/ObjC_classic/Classes/ NSApplication.html#CACBHCEH


On Tuesday, April 29, 2003, at 02:14 PM, Jonas Roel wrote:

Hello,

I am trying to set up a document based app to automatically load a Nib when the app loads. I set up An NSBundle to load the NibNamed: Owner: but everytime I start a new document I get another window of that nib. This is obviously an error. I only want to load once and at launch time.

Should I Subclass NSApplication in the MainMenu Nib. Or is there another way to do this sort of thing. This is what I am thinking of:
1) Document Application Launches...
2) The Nib I would like to launch launches automatically...
3) the document window launches as usual...

If someone could just point me in the right direction or give me their thoughts about this that would greatly help...

Thanks...
JR
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


Amul Goswamy
Interface Builder QA
Apple
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Nib loading question with an Document based app... (From: Jonas Roel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.