• 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: Displaying "loading" dialog at NSApplication init?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Displaying "loading" dialog at NSApplication init?
      • From: Finlay Dobbie <email@hidden>
References: 
 >Displaying "loading" dialog at NSApplication init? (From: Colin Cornaby <email@hidden>)

  • Prev by Date: DO and Bindings
  • Next by Date: Re: split view
  • Previous by thread: Displaying "loading" dialog at NSApplication init?
  • Next by thread: Re: Displaying "loading" dialog at NSApplication init?
  • Index(es):
    • Date
    • Thread