From: Charles S. <bas...@ch...> - 2012-06-20 04:21:38
|
On Jun 19, 2012, at 10:33 PM, Robert Munafo wrote: > Thank you for saving me the effort of trying to learn all that > Interface Builder stuff. Your PictViewer works fine. Here is a screen > shot showing it after having opened a PICT file, which I then saved as > TIFF, then opened the TIFF in Preview. > > <links to personal webspace snipped> > > I can also view the original PICT file in Preview, but oddly your > version (and QuickView in the FInder) both procude a nicer, > anti-aliased version of the label text, whereas Preview 5.0.3 gives > rougher non-anti-aliased text. > > I think that's because Quartz renders things with anti-aliasing > (oversampling). There were older versions of Preview in older versions > of MacOS X that did the anti-aliased rendering too, but for some > reason Apple kept changing their mind about whether Preview should > render PICTs with anti-aliasing. > > So anyway, your code works! Sweet! Hopefully you don’t mind me posting this back onto the list, but I thought it’d be worth letting the general populace know that NSImage is apparently more capable at reading PICTs than the libpaint-based solution, making it possibly worth a small bit of special-case code for OS X-based hosts. Charles |