Re: Re: NSWindow from code

2009-04-06 Thread Jan Bernard Marsman
Thanks Graham. I will do that. I was thinking in terms of class portability to include these panels inside my view (-controller) ;-) JB > On 07/04/2009, at 3:40 AM, Jan Bernard Marsman wrote: > > From my subclass of an NSView I call the (simplified) following: > > - openHUD { > >[NSButton *

Re: NSWindow from code

2009-04-06 Thread Graham Cox
On 07/04/2009, at 3:40 AM, Jan Bernard Marsman wrote: From my subclass of an NSView I call the (simplified) following: - openHUD { [NSButton * button] = [NSWindow * w] = ... [[w contentView] addSubview: ] NSWindowController * nw = [NSWindowController initWithWindow:w]; [nw