copy/paste in modal window
copy/paste in modal window
- Subject: copy/paste in modal window
- From: Dave McCarthy <email@hidden>
- Date: Tue, 6 Apr 2010 17:11:18 -0400
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 (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