Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prevent NSMenuItem selection



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Prevent NSMenuItem selection (From: Greg Hoover <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.