mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:00:37 +00:00
Create and use local NSPasteboard object in -performService:....
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13815 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1242cd434e
commit
cf79e927c7
2 changed files with 15 additions and 2 deletions
|
@ -316,6 +316,14 @@ NSRegisterServicesProvider(id provider, NSString *name)
|
|||
SEL msgSel = NSSelectorFromString(name);
|
||||
IMP msgImp;
|
||||
|
||||
/*
|
||||
Create a local NSPasteboard object for this pasteboard. If we try to
|
||||
use the remote NSPasteboard object, we get trouble when setting property
|
||||
lists since the remote NSPasteboard fails to serialize the local property
|
||||
list objects for sending to gpbs.
|
||||
*/
|
||||
pb = [NSPasteboard pasteboardWithName: [pb name]];
|
||||
|
||||
if (obj != nil && [obj respondsToSelector: msgSel])
|
||||
{
|
||||
msgImp = [obj methodForSelector: msgSel];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue