• 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
Re: Sending a Cmd-V keystroke
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending a Cmd-V keystroke


  • Subject: Re: Sending a Cmd-V keystroke
  • From: Dave DeLong <email@hidden>
  • Date: Fri, 26 Mar 2010 13:49:31 -0600

I think you're probably moving too fast.  Pasting is not a synchronous operation.  What I'm guessing is happening is that you're filling the pasteboard, pasting, filling, pasting, filling, and pasting, but the pasteboard hasn't starting actually *pasting* until you've already refilled it a third time.

One way around this is to declare and owner for the pasteboard, and not initiate the next paste until the pasteboard's owner until *after* the owner has received the pasteboard:provideDataForType: method.

However, even then it's not guaranteed to work, because there might be some other utility (iClip, PTHPasteboard, whatever) that's listening for changes to the pasteboard and requesting the data as well.

Dave

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >Sending a Cmd-V keystroke (From: Jim Graham <email@hidden>)

  • Prev by Date: NSOutlineView Data Source setObjectValue not being called
  • Next by Date: Re: Compiler Warning: 'NSDate' may not respond to '+dateWithTimeInterval:sinceDate:'
  • Previous by thread: Sending a Cmd-V keystroke
  • Next by thread: Re: Sending a Cmd-V keystroke
  • Index(es):
    • Date
    • Thread