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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to