Re: pasteboard issues
Re: pasteboard issues
- Subject: Re: pasteboard issues
- From: Brian Amerige <email@hidden>
- Date: Mon, 12 Feb 2007 06:53:54 -0500
Thanks a bunch! I chose to just archive with NSKeyedArchiver into
NSData, then unarchive with NSKeyedUnarchiver. Works beautifully.
Cheers,
Brian.
On Feb 11, 2007, at 2:34 PM, Uli Kusterer wrote:
Am 11.02.2007 um 19:24 schrieb Brian Amerige:
Like I said before, NSFilenamesPboardType sets nicely, and I can
read the array of paths (which are indeed PB-compatible) from the
propertylist. The problem is, by custom PBoard doesn't. I was
under the assumption that custom PBoard types were open to a
multitude of object-types --- is this correct?
Well, the type is. However, setPropertyList:forType: still
requires a valid plist. If you want to archive non-plist objects,
you'll have to use NSKeyedArchiver to archive them into NSData and
then put that on the pasteboard, or use some othe pasteboard method.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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