NSWindow from code
NSWindow from code
- Subject: NSWindow from code
- From: Jan Bernard Marsman <email@hidden>
- Date: Mon, 6 Apr 2009 19:40:32 +0200
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 added default component to this does not show the user interaction
effects (buttondown for instance, or a (useless) sliding effect of the
knob).
The lifecycle of my object where I perform these calls lasts during the
entire apllication.
I am aware that actual functionality requires me to implement delegate
functions...
Who can pinpoint my missing link? Many thanks,
JB
>From my subclass of an NSView I call the (simplified) following:
- openHUD {
[NSButton * button] = <alloc & init>
[NSWindow * w] = <alloc & init with some style>
...
[[w contentView] addSubview: <button>]
NSWindowController * nw = [NSWindowController initWithWindow:w];
[nw showWindow:nil]
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden