• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBox with a NSPopUpButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBox with a NSPopUpButton


  • Subject: Re: NSBox with a NSPopUpButton
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 23 Jul 2010 20:37:22 -0400

Kyle Sluder (email@hidden) on 2010-07-23 20:20 said:

>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.

Yup. My reply was in regards to the HIG.  As I quoted, Eric said "It
seems strange that the HIG would say this is ok, but then have the NSBox
API not support it".  The reason for that, I suspect, is that the other
major GUI API, Carbon, does/did support this "in one step", as you say.

>> 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.

Yup.  Just giving the OP options... There might be something useful in
the .h around HIThemeDrawGroupBox().

Sean
_______________________________________________

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

References: 
 >NSBox with a NSPopUpButton (From: Eric Gorr <email@hidden>)
 >Re: NSBox with a NSPopUpButton (From: "Sean McBride" <email@hidden>)
 >Re: NSBox with a NSPopUpButton (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSBox with a NSPopUpButton
  • Next by Date: Nested UIScrollView: horizontal scrolling
  • Previous by thread: Re: NSBox with a NSPopUpButton
  • Next by thread: Re: NSBox with a NSPopUpButton
  • Index(es):
    • Date
    • Thread