• 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: Question about menuHasKeyEquivalent:forEvent:target:action:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about menuHasKeyEquivalent:forEvent:target:action:


  • Subject: Re: Question about menuHasKeyEquivalent:forEvent:target:action:
  • From: Steve Mills <email@hidden>
  • Date: Mon, 07 Oct 2013 16:38:52 -0500

On Oct 7, 2013, at 16:14:33, Ken Thomases <email@hidden>
 wrote:

> I guess it's moot in light of my other point but: then NSMenu is sure to invoke the returned action on the returned target (in the case where it was really intending to perform the key equivalent), wouldn't it?  Or are you setting the target and action to values that will do nothing?

I was returning nil for the target and action so it will not try to invoke them.

Since I can't rely on menuHasKeyEquivalent, I tried subclassing NSMenu so I could override performKeyEquivalent, but that method isn't even called on my subclass. Hrmph.

--
Steve Mills
office: 952-818-3871
home: 952-401-6255
cell: 612-803-6157



_______________________________________________

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


References: 
 >Question about menuHasKeyEquivalent:forEvent:target:action: (From: Steve Mills <email@hidden>)
 >Re: Question about menuHasKeyEquivalent:forEvent:target:action: (From: Ken Thomases <email@hidden>)
 >Re: Question about menuHasKeyEquivalent:forEvent:target:action: (From: Steve Mills <email@hidden>)
 >Re: Question about menuHasKeyEquivalent:forEvent:target:action: (From: Ken Thomases <email@hidden>)
 >Re: Question about menuHasKeyEquivalent:forEvent:target:action: (From: Steve Mills <email@hidden>)
 >Re: Question about menuHasKeyEquivalent:forEvent:target:action: (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Question about menuHasKeyEquivalent:forEvent:target:action:
  • Next by Date: Re: Infinite Scroll View?
  • Previous by thread: Re: Question about menuHasKeyEquivalent:forEvent:target:action:
  • Next by thread: Is inout documented anywhere?
  • Index(es):
    • Date
    • Thread