• 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
Can't get window to come to front in awakeFromNib method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't get window to come to front in awakeFromNib method


  • Subject: Can't get window to come to front in awakeFromNib method
  • From: Kurt Marek <email@hidden>
  • Date: Sat, 6 Dec 2003 09:41:37 -0800

I have a setup window that I want to come to the front when an app is
launched for the first time. I thought this would be fairly easy with
the following code:

if ([[NSUserDefaults standardUserDefaults]
objectForKey:@"libraryLocation"]==nil) {
[setupWindow makeKeyAndOrderFront:self];
}

This code is in the awakeFromNib method of my main controller. The
window appears on screen and is made key (it's menu bar text is black),
but it stays behind the main window of my app. What am I doing wrong
here?

Kurt
_______________________________________________
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: Can't get window to come to front in awakeFromNib method
      • From: Jens Bauer <email@hidden>
    • Re: Can't get window to come to front in awakeFromNib method
      • From: Alexander Spohr <email@hidden>
    • Re: Can't get window to come to front in awakeFromNib method
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: HelpViewer.app and Preview.app Toolbar Nav?
  • Next by Date: Re: HelpViewer.app and Preview.app Toolbar Nav?
  • Previous by thread: Re: HelpViewer.app and Preview.app Toolbar Nav?
  • Next by thread: Re: Can't get window to come to front in awakeFromNib method
  • Index(es):
    • Date
    • Thread