Pasteboard substitution
Pasteboard substitution
- Subject: Pasteboard substitution
- From: Quentin Mathé <email@hidden>
- Date: Fri, 11 Jul 2003 16:47:12 +0200
Is it possible to take a snapshot of the current general pasteboard,
replace it temporarly with a custom one, and restore it at the end ?
I want to do something like the following pseudo code :
defaultPasteboard = [[NSPasteboard generalPasteboard] copy]; // take a
snapshot
[NSPasteboard setGeneralPasteboard:[NSPasteboard
pasteboardWithName:NSGeneralPboard]]; // substitute
... // here I do what I need, with the new pasteboard and pbcopy
pbpaste command line tools
[NSPasteboard setGeneralPasteboard:defaultPasteboard]; // restore
[defaultPasteboard release];
Any ideas ?
Quentin.
--
Quentin Mathi
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.