Someone posted essentially this same question in 2004 but there were no answers.

I've got a Cocoa plugin running inside a host application. The plugin opens an 
NSOpenPanel, and as a result of user action there, a modal window containing 
two NSTextFields. I'd like the user to be able to copy and paste text in those 
fields, but all they do is beep, presumably because the host application has 
disabled the copy/cut/paste commands.

I tried implementing keyDown in my window controller but it is never called. I 
tried subclassing NSWindow and implementing keyDown there but it is never 
called. Maybe keyDown isn't even the right place to be looking, but my Cocoa 
experience is limited. What should I do to allow copy/paste for these controls?
_______________________________________________

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