• 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: Paste with no Edit Menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Paste with no Edit Menu


  • Subject: Re: Paste with no Edit Menu
  • From: Gregory Weston <email@hidden>
  • Date: Wed, 11 Feb 2009 18:17:04 -0500

Andy Bell wrote:

I am working on a project which is an Agent and just has a couple on Windows
and a menu bar icon. The menu bar icon has a menu which is used to call up
the two windows. Now I want to add 'Command-V' so that I can paste into the
NSTextFields in this window, as I don't have the standard Edit menu I need
to catch this command in some other way. I did first try to add a menu item
for pasting in the menu bar menu and hooking it into the First responder
paste selector but that didn't work. Any ideas?

You want to implement performKeyEquivalent: somewhere in your responder chain. Possibly, for example, in the content view of your window.
_______________________________________________


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


  • Prev by Date: Re: Core Data: right way to gather all elements of a to-many relationship?
  • Next by Date: Re: Transparent Image
  • Previous by thread: Re: Paste with no Edit Menu
  • Next by thread: Core Data: right way to gather all elements of a to-many relationship?
  • Index(es):
    • Date
    • Thread