[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enriched image information in pasteboard in Graphos
From: |
Wolfgang Lux |
Subject: |
Re: enriched image information in pasteboard in Graphos |
Date: |
Thu, 26 Feb 2015 22:16:38 +0100 |
Hi Riccardo,
> I am in the need of copying an image in Graphos through the copy/paste
> mechanism.
>
> Objects in graphos get copied with a specific pasteboard type as plist,. The
> same plist is also used to save to a file.
>
> The plist contains objects where you have e.g. positions and sizes. The
> properties are "serialized" manually, so a NSPoint is actually split in x, y
> in a human readable form.
>
> If I want to copy an image, I need to provide both the data (e.g.
> TIFFRepresentation as NSData) but also the accessory information I need.
> How can I put NSData in a property list? can I serialize it in a clever way?
> I suppos some kind of 7bit encoding needs to happen, a bit like hex64 for
> mail attachments.
GNUstep's (and NeXTstep's) property lists have always supported NSData objects.
So there is no need to serialize them first. Unless I am missing something?
Wolfgang