background of NSButton and NSPopUpButton
background of NSButton and NSPopUpButton
- Subject: background of NSButton and NSPopUpButton
- From: Don Willems <email@hidden>
- Date: Thu, 25 Nov 2004 11:20:46 +0100
Hi,
I would like to change the background of an NSButton and NSPopUpButton
and I'm wonderin how to do this. I can imagine several ways of doing
this, but don't know what the best way is.
The controls should look like the buttons and popupbuttons in the 'bar'
above the scrollpane in XCode's editor.
I've never tried this before and maybe there is a simple solution which
I don't see.
The first solution I thought of was:
- use an NSView subclass (with custom background) as the superview of
the NSButtons and NSPopUpButtons which have no border.
But this solution is not very generic.
Now I'm thinking of subclassing NSButtonCell and NSPopUpButtonCell, but
I'm not sure how to go about that.
What do you think,
Don
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden