Emulating Carbon menu bevel button?
Emulating Carbon menu bevel button?
- Subject: Emulating Carbon menu bevel button?
- From: Jo Meder <email@hidden>
- Date: Mon, 25 May 2009 13:48:57 +1200
Hi,
I was wondering if anyone has emulated a Carbon menu bevel button in
Cocoa? I find this to be a notable lack in Cocoa. I've tried using a
NSPopUpButton but that's obviously not suited to the purpose.
At this stage I'm thinking of custom drawing the button to have a
smaller arrow in the same locations as the Carbon control, and
popping up a menu myself in response to the button clicks. If you've
also gone the Carbon control emulation route could you please let me
know the approach you took, or any ideas you might have otherwise?
One thing I have seen suggested is is an NSPopUpButtonCell to handle
certain actions, but not letting it draw.
I'm supporting 10.4 and up.
Regards,
Jo Meder
_______________________________________________
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