Re: Re: Open window from nib in foreground

2009-02-20 Thread doc . aronnax
OK, that worked great! I implemented -awakeFromNib in the first responder class: - (void)awakeFromNib { [sessionWindow makeKeyAndOrderFront: self]; } and that did the trick. Next problem: sometimes when I do NSAlert sheets the NSAlert does not have focus. I am closing a sheet that was previo

Open window from nib in foreground

2009-02-19 Thread doc . aronnax
Hello, I am programmatically launching a window that is defined in a XIB file using the following statement: [NSBundle loadNibNamed:@"MyNibFile" owner:anObject]; where MyNibFile is the name of the XIB file and anObject is the object that gets designated as the "File's owner". However, the