Custom NSPopUpButton
Custom NSPopUpButton
- Subject: Custom NSPopUpButton
- From: Tristan Jehan <email@hidden>
- Date: Tue, 12 Dec 2006 13:23:42 -0500
I'm trying to change the look of a NSPopUpButton by subclassing
NSPopUpButton and NSPopUpButtonCell. It's all working fine except
that I've also made my own window texture, and the transparent zone
of the custom PopUpButton image deletes my texture. If the window is
made transparent I see my desktop. If not, I see black.
In the initTextCell of my PopUpButtonCell I tried:
[buttonCell setBordered:NO];
[buttonCell setBackgroundColor:[NSColor clearColor]];
That doesn't help and doesn't behave like the normal NSButton, which
I have no problem with. I also tried overriding isOpaque:
- (BOOL) isOpaque {
return NO;
}
Any suggestions?
Regards,
Tristan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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