• 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: Need a launch/loading screen to be displayed while app is starting/initializing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need a launch/loading screen to be displayed while app is starting/initializing?


  • Subject: Re: Need a launch/loading screen to be displayed while app is starting/initializing?
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 4 Sep 2009 11:26:30 -0700


On Sep 4, 2009, at 11:18 AM, Michael A. Crawford wrote:

-[[NSApplication sharedApplication] mainWindow] returns nil!

-mainWindow returns the frontmost visible document window. It will never return a hidden window.


So, when I call -[window makeKeyAndOrderFront] I'm doing so with a nil object. I don't know how to make my main window visible.

Declare an instance variable for it, and wire that up in the nib to point to the window. Then just call [myWindow makeKeyAndOrderFront: self].


—Jens

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Need a launch/loading screen to be displayed while app is starting/initializing? (From: "Michael A. Crawford" <email@hidden>)
 >Re: Need a launch/loading screen to be displayed while app is starting/initializing? (From: Graham Cox <email@hidden>)
 >Re: Need a launch/loading screen to be displayed while app is starting/initializing? (From: "Michael A. Crawford" <email@hidden>)

  • Prev by Date: Re: Need a launch/loading screen to be displayed while app is starting/initializing?
  • Next by Date: Application main menu title behavior change in 10.6
  • Previous by thread: Re: Need a launch/loading screen to be displayed while app is starting/initializing?
  • Next by thread: Re: Need a launch/loading screen to be displayed while app is starting/initializing?
  • Index(es):
    • Date
    • Thread