Converting NSPasteboard to NSData
Converting NSPasteboard to NSData
- Subject: Converting NSPasteboard to NSData
- From: Jeshua Lacock <email@hidden>
- Date: Mon, 28 Apr 2003 02:08:53 -0700
Greetings,
Does anybody know of a convenient way to encode a NSPasteboard object
into a NSData object?
I can write the individual pasteboard types data as data streams with
'dataForType', however, I would like to write the complete pasteboard
to with [NSFileHandle writeData:], including the pasteboard types.
It seems like NSArchiver could do it, but I can't quite figure out how.
My pasteboard object does not seem to respond to
'archivedDataWithObjectRoot:'.
I would greatly appreciate any suggestions, pointers and/or any help
achieving my goal.
Thanks,
Jeshua Lacock __________________________
Programmer/Owner Phone: 760.935.4736
http://OpenOSX.com Fax: 760.935.4845
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_______________________________________________
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.