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

NSWindow from code

2009-04-06 Thread Jan Bernard Marsman
Dear experts, I can't seem to get the working of it, nor find the answer on the internet : My goal is to have a panel with a slider when I click on a button from my main app to change an image, say it's brightness. So in the subclass of this image, I want some popup action with a nspanel Any adde