• 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: NSPopUpButton pullsDown:YES and dummy first item - normal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopUpButton pullsDown:YES and dummy first item - normal?


  • Subject: Re: NSPopUpButton pullsDown:YES and dummy first item - normal?
  • From: Rua Haszard Morris <email@hidden>
  • Date: Fri, 3 Apr 2009 10:18:43 +1300

Thanks for the suspicion-confirmation and docs pointers.

I had seen the conceptual info about the 1 versus zero thing: my problem with that documentation is it says the first item is stored at 1 - which is written the wrong way around, in that the first item is stored at zero, but is ignored. I'll fill in the docs feedback form..

thanks,
Rua HM.

On 3/04/2009, at 9:56 AM, Michael Ash wrote:

On Thu, Apr 2, 2009 at 7:58 AM, Graham Cox <email@hidden> wrote:

On 02/04/2009, at 12:55 PM, Rua Haszard Morris wrote:

This seems like a weird hack, and makes me think I'm going about this the
wrong way - is this a normal approach?

I'm afraid so. I think the reason could be (pre)historic - the original
Carbon Menu Manager (which Cocoa sits atop) constructed menus this way. It
sucks, has always sucked, and looks likely that (as it has never been
changed despite the vast catalogue of other changes elsewhere) will always
suck.

I doubt this is the case. NSPopUpButton long predates Mac OS X and therefore existed long before it was implemented on top of the Menu Manager. Sounds like convergent evolution to me. A silly choice I agree, but somehow it got made twice.

Mike
_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: NSPopUpButton pullsDown:YES and dummy first item - normal?
      • From: Michael Ash <email@hidden>
    • Re: NSPopUpButton pullsDown:YES and dummy first item - normal?
      • From: Kyle Sluder <email@hidden>
References: 
 >NSPopUpButton pullsDown:YES and dummy first item - normal? (From: Rua Haszard Morris <email@hidden>)
 >Re: NSPopUpButton pullsDown:YES and dummy first item - normal? (From: Graham Cox <email@hidden>)
 >Re: NSPopUpButton pullsDown:YES and dummy first item - normal? (From: Michael Ash <email@hidden>)

  • Prev by Date: Re: NSPopUpButton pullsDown:YES and dummy first item - normal?
  • Next by Date: Problem with NSOutlineView
  • Previous by thread: Re: NSPopUpButton pullsDown:YES and dummy first item - normal?
  • Next by thread: Re: NSPopUpButton pullsDown:YES and dummy first item - normal?
  • Index(es):
    • Date
    • Thread