Re: Displaying "loading" dialog at NSApplication init?
Re: Displaying "loading" dialog at NSApplication init?
- Subject: Re: Displaying "loading" dialog at NSApplication init?
- From: Yann Bizeul <email@hidden>
- Date: Fri, 9 Jul 2004 11:32:27 +0200
Perhaps init is too early to load windows or AppKit stuffs.
You should try to put this in
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
NSApp's delegate, or in
- (void)awakeFromNib;
in your subclass.
Le 9 juil. 04, ` 04:40, Colin Cornaby a icrit :
>
I'm trying to display a "loading" dialog at startup using
>
NSWindowController. I've subclassed NSApplication and it is running
>
all the proper functions to load the needed portions of my app on
>
startup. The NSWindowController code loads just fine and runs, but the
>
window never appears. Ideas? I need to load the resources on startup
>
because this is a document based application.
>
>
The code looks a bit like this:
>
>
@implementation CSCatalystApplication
>
>
-(id)init{
>
[super init];
>
NSWindowController *waitController = [[NSWindowController alloc]
>
initWithWindow:loadingWindow];
>
[loadingWindow center];
>
[waitController showWindow:self];
>
//Pre-load the proper shared instance
>
[self aquaDefaults];
>
return self;
>
}
>
>
(That is the code for for the NSApplication subclass)
>
_______________________________________________
>
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.
>
>
>
--
Yann Bizeul - yann at tynsoe.org
http://projects.tynsoe.org/
_______________________________________________
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.