Re: Sending a Cmd-V keystroke
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