Re: Programatically creating windows

2008-12-15 Thread Keary Suska
On Dec 13, 2008, at 9:40 PM, Development wrote: [mainWindow makeKeyAndOrderFront:self]; [mainWindow setInitialFirstResponder:docView]; Of particular note, -setInitialFirstResponder: should be called before the window is placed onscreen, so you should call it before - makeKe

Re: Programatically creating windows

2008-12-13 Thread Michael Babin
On Dec 13, 2008, at 10:40 PM, Development wrote: I am creating a window more or less from scratch in my main controller. The following is the code and all referred to objects are defined in the xib file save mainWindow which i am obviously creating. mainWindow = [[NSWindow alloc]initWithCo

Programatically creating windows

2008-12-13 Thread Development
I am creating a window more or less from scratch in my main controller. The following is the code and all referred to objects are defined in the xib file save mainWindow which i am obviously creating. mainWindow = [[NSWindow alloc]initWithContentRect:[mainProto frame] styleMask:NSBorderless