Re: menu with checkbox
Re: menu with checkbox
- Subject: Re: menu with checkbox
- From: Georg Seifert <email@hidden>
- Date: Thu, 11 Sep 2008 08:29:46 +0200
That what exactly what I was looking after. I think it would be not to
strange in the context where it occurs in my app.
The normal selection behavior is for selecting the active layer in my
view. The additional checkbox should allow to blend in/out the other
layers.
I couldn’t think of a better/more intuitive way to achieve this.
To implement this, I just thought about using a tableview in the popup
menu. There we have very similar behavior. You have a selection and
checkboxes. And clicking the checkboxes does not change the selection.
Am 10.09.2008 um 21:38 schrieb Andrew Farmer:
On 10 Sep 08, at 12:02, Igor Mozolevsky wrote:
2008/9/10 Andrew Farmer <email@hidden>:
On 10 Sep 08, at 08:20, Georg Seifert wrote:
I have a NSPopupButton. What I need is that each item has a
checkbox in
front of its label. The menu needs to be selectable like with any
normal
NSPupupButton but when I click the checkbox it should just check
the box but
should not change the selection.
This sounds like a really nonintuitive UI. A lot of users
manipulate menus
by clicking and dragging, so releasing the mouse to click a
checkbox would
dismiss the menu.
FYI, Safari menu does exactly that with "Block Pop-Up windows" and
"Private Browsing..."
No, a checkbox would look rather different... here, let me mock up
what I was thinking the OP was asking for.
<http://i34.tinypic.com/zjfqyr.png>
If what they're after is simply the check marks that Safari and
other applications use in menus, you can get that with -[NSMenuItem
setState:], like I mentioned earlier.
_______________________________________________
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