Re: Prevent NSMenuItem selection
Re: Prevent NSMenuItem selection
- Subject: Re: Prevent NSMenuItem selection
- From: Greg Hoover <email@hidden>
- Date: Fri, 19 Oct 2007 08:02:51 -0700
I'm trying to...what "section header menu items" are you referring to?
Greg
On Oct 19, 2007, at 12:20 AM, Uli Kusterer wrote:
Am 19.10.2007 um 05:34 schrieb Greg Hoover:
I have a menu in an nspopupbutton with several sections (there are
heading items) at various locations. I want to prevent these items
from being selectable, similarly to separator items. Can somebody
point me to a solution? The only alternative I see is to create a
custom subclass.
Danger! Apple Human Interface Police (tm) is everywhere!
There's a reason why unselectable things are generally disabled.
We have section header menu items these days, so I'd use that and
let Apple sort out how to display them. That way, users will *know*
the item isn't supposed to be selectable, and doesn't have to try
out to find out it won't do anything.
(If you're not aware why this may be a Bad Thing(tm), Steve Krug
wrote a nice book, "Don't make me think", that explains why you
want to make your UI this obvious to the user and stay out of their
way. In short, it lets users concentrate on the task at hand, like
writing their novel, instead of on the tool, i.e. the word
processor you wrote)
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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