• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Convert PICT to NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Convert PICT to NSImage
      • From: Ian was here <email@hidden>
References: 
 >Re: Convert PICT to NSImage (From: Ian was here <email@hidden>)
 >Re: Convert PICT to NSImage (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Return in NSTableView--how detect a row change?
  • Next by Date: Re: Why add a nil item to an NSArray ?
  • Previous by thread: Re: Convert PICT to NSImage
  • Next by thread: Re: Convert PICT to NSImage
  • Index(es):
    • Date
    • Thread