Trouble with TIFFs...
Trouble with TIFFs...
- Subject: Trouble with TIFFs...
- From: Richard Jackson <email@hidden>
- Date: Tue, 3 Dec 2002 09:26:21 -0800
This is probably my ignorance instead of a bug...?
I have a Cocoa app that loads images using:
myImage = [[NSImage alloc] initWithContentsOfURL:url];
If I use QuickTime Player to export a Picture, selecting TIFF format
(Millions of Colors, None Compression, Big Endian), the default file name
that QuickTime Player puts up is "myPicture.pct". I can successfully save
the file with this name, open it in my Cocoa app, and I see that the
resulting NSImage contains an NSPICTImageRep which I can draw, etc.
If I change the name of the file to "myPicture.tif" (or "myPicture.tiff")
and try to open it in my app, I get an NSImage that has NO ImageReps and
can't draw itself.
I notice that Finder thinks the exported file is a PICT file type (and
when I keep the file name ".pct" I end up with an NSPICTImageRep instead of
an NSTIFFImageRep). Is QuickTime Player actually making a PICT format file -
and I'm confusing Cocoa when I try to label it ".tiff"? Or is the TIFF
information wrapped in a PICT file format? Or is QuickTime Player making
PICTs even though I chose TIFF as the compression type?
I'm so confused...
- Richard
_______________________________________________
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.