Re: Can't get window to come to front in awakeFromNib method
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.