Re: NSPopUpButton pullsDown:YES and dummy first item - normal?
Re: NSPopUpButton pullsDown:YES and dummy first item - normal?
- Subject: Re: NSPopUpButton pullsDown:YES and dummy first item - normal?
- From: Kyle Sluder <email@hidden>
- Date: Thu, 2 Apr 2009 18:22:17 -0400
On Thu, Apr 2, 2009 at 5:18 PM, Rua Haszard Morris
<email@hidden> wrote:
> 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..
It's not ignored, it's used by the NSPopUpButtonCell to draw the view,
because an NSPopUpButton's cell is always configured with
usesItemFromMenu == YES. I think this is a mistake by the way; I've
found NO to be the far more useful and intuitive option.
--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