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

Re: Open window from nib in foreground

2009-02-19 Thread Alexander Spohr
Read the Docs on NSWindow then try makeKeyAndOrderFront: atze Am 19.02.2009 um 18:54 schrieb doc.aron...@gmail.com: Hello, I am programmatically launching a window that is defined in a XIB file using the following statement: [NSBundle loadNibNamed:@"MyNibFile" owner:anObject];