• 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: Prevent NSMenuItem selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Prevent NSMenuItem selection
      • From: Uli Kusterer <email@hidden>
References: 
 >Prevent NSMenuItem selection (From: Greg Hoover <email@hidden>)
 >Re: Prevent NSMenuItem selection (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Cocoa developers required for an interesting contract in Belgium
  • Next by Date: Re: Prevent NSMenuItem selection
  • Previous by thread: Re: Prevent NSMenuItem selection
  • Next by thread: Re: Prevent NSMenuItem selection
  • Index(es):
    • Date
    • Thread