• 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
copy/paste in modal window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: copy/paste in modal window
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Alternative Location of Cocoa ID3 Framework??
  • Next by Date: Re: Problems with repetetive execution of netstat using NSTask and NSTimer
  • Previous by thread: change the CGColorSpace when using a CIFilter to use 16bits/channel images
  • Next by thread: Re: copy/paste in modal window
  • Index(es):
    • Date
    • Thread