Re: Paste with no Edit Menu
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