Re: Convert PICT to NSImage
Re: Convert PICT to NSImage
- Subject: Re: Convert PICT to NSImage
- From: Douglas Davidson <email@hidden>
- Date: Mon, 27 Jun 2005 15:19:12 -0700
On Jun 27, 2005, at 3:17 PM, Douglas Davidson wrote:
Still doesn't work though. It would seem that
"theData" is raw PICT data, so it needs to get
transformed by NSPICTImageRep (which it does). The
issue then, is that the correct data needs to be
pulled from the NSPICTImageRep. This is where I'm
stuck, and spinning my wheels. I need to pass an
NSData object containing the correct image data into
fileWrapper object.
One thing to keep in mind is that there are two PICT formats, an in-
memory format and an on-disk format. The on-disk format has 512
bytes of 0 (if I remember correctly) prepended to it. The data for
NSFileWrapper presumably would use the on-disk format.
You will probably also want to set a preferredFilename for the file
wrapper, to make sure that the extension is .pict.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden