Re: NSBox with a NSPopUpButton
Re: NSBox with a NSPopUpButton
- Subject: Re: NSBox with a NSPopUpButton
- From: Kyle Sluder <email@hidden>
- Date: Fri, 23 Jul 2010 17:20:34 -0700
On Fri, Jul 23, 2010 at 4:39 PM, Sean McBride <email@hidden> wrote:
> What you've missed is that this is something Carbon can do that Cocoa
> cannot. :( If you launch IB and create a new Carbon window, add a Box,
> then you can change its type to 'popup'.
There's no reason you can't do this in Cocoa. It's just that NSBox
doesn't give you API to do it in one step.
>
> You could maybe make a custom NSView that uses HITheme APIs to draw.
> Perhaps HIThemeDrawGroupBox() is the right one...
And re-implement the entirety of NSPopUpButtonā¦ at which point you
might as well have used NSPopUpButtonCell.
Or just put an NSPopUpButton in the right place and call it a day.
--Kyle Sluder
_______________________________________________
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