• 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
Key equivalents for an action without a visible object item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Key equivalents for an action without a visible object item


  • Subject: Key equivalents for an action without a visible object item
  • From: Kanny <email@hidden>
  • Date: Sat, 05 Jul 2008 20:14:47 -0400

Is it possible to define a key-equivalent for an action like in NSMenuItem but without any visible object ? 



The situation is like this: I have a NSTextField in nib file of my Application-Menu-less menubar app. I want it to receive Command-v for 'paste', but since I don't have/want a menuItem to connect to FirstResponder's paste method, it doesn't react in any way to Command-v. However the textfield is able to receive paste method by Control-clicking and selecting from the system-wide contextual menu. 




I tried to look for NSKeyBindingManager, but there isn't any documentation for that. 




Alternately, is there a method to capture the key-strokes while in the textfield without having to define a custom class of NSResponder ?






_______________________________________________

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: Key equivalents for an action without a visible object item
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: garbage collection and NSConnection
  • Next by Date: Re: Key equivalents for an action without a visible object item
  • Previous by thread: Re: NSAppleScript - compileAndReturnError always breaks with EXC_BAD_ACCESS
  • Next by thread: Re: Key equivalents for an action without a visible object item
  • Index(es):
    • Date
    • Thread