• 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: Is it OK to setKeyEquivalent during validateMenuItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it OK to setKeyEquivalent during validateMenuItem


  • Subject: Re: Is it OK to setKeyEquivalent during validateMenuItem
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 16 Aug 2013 13:32:01 -0700

To answer the question in your subject line, I'm not sure.  It certainly seems like a misuse if not an abuse.  I always do stuff like that in my friend, -menuNeedsUpdate.  In -menuNeedsUpdate, you can go so far as to remove all the items and rebuild the whole menu from scratch if you want to.

On 2013 Aug 16, at 12:18, Steve Mills <email@hidden> wrote:

> the set-up … will … remove matching items in the normal menus.

It seems like it is this removal which is not working.  It is odd, but documented, that to remove a key equivalent, you must set it to @"".  Setting keyEquivalent to nil does not work as expected.


_______________________________________________

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: Is it OK to setKeyEquivalent during validateMenuItem
      • From: Steve Mills <email@hidden>
References: 
 >Is it OK to setKeyEquivalent during validateMenuItem (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Auto layout semantics?
  • Next by Date: Re: After popping view controller, table view scrolls sideways
  • Previous by thread: Is it OK to setKeyEquivalent during validateMenuItem
  • Next by thread: Re: Is it OK to setKeyEquivalent during validateMenuItem
  • Index(es):
    • Date
    • Thread