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

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


  • Subject: Re: Can't get window to come to front in awakeFromNib method
  • From: Jens Bauer <email@hidden>
  • Date: Sat, 6 Dec 2003 19:01:56 +0100

Hi Kurt,

On Saturday, Dec 6, 2003, at 18:41 Europe/Copenhagen, Kurt Marek wrote:

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?

Did you remember to connect the delegate from the window to the controller ?


Love,
Jens
_______________________________________________
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: 
 >Can't get window to come to front in awakeFromNib method (From: Kurt Marek <email@hidden>)

  • Prev by Date: Re: Can't get window to come to front in awakeFromNib method
  • Next by Date: How does "Conditionally sets editable" work?
  • Previous by thread: Re: Can't get window to come to front in awakeFromNib method
  • Next by thread: Socket crash
  • Index(es):
    • Date
    • Thread