From: Charles S. <bas...@ch...> - 2012-06-18 17:23:02
|
On Jun 18, 2012, at 12:04 PM, Robert Munafo wrote: > Oh really? That's pretty cool. Does it have NSPICTImageRep? Yep, and -[NSImage initWithData:] gets you an NSImage containing an NSPICTImageRep when you use it with PICT data. However, there’s a disclaimer in the documentation stating that because it’s not using QuickDraw, the image might not look *exactly* the same as the original. However, that disclaimer’s pretty much always been there, so I wouldn’t worry too much about it. https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSPICTImageRep_Class/Reference/Reference.html > I have Snow Leopard (10.6) and as discussed here: > > http://forums.macworld.com/index.php?/topic/121419-preview-cant-open-pict-files/ > > and here: > > http://blog.timac.org/?p=456 > > it won't display PICT files in QuickView unless I boot in 32-bit > Kernel mode, and to open them into Preview I need to set the "Open in > 32 Bit Mode" option in the Finder's info window for Preview. > > Based on your report of reading PICT data on Lion, maybe Apple had to > back-track on their policy. Just tried it; -[NSImage initWithData:] works fine with PICT on 64-bit Snow Leopard too. Charles |