[Adium-devl] Feb 1 is the Adium 1.0 release date

Evan Schoenberg evan at adiumx.com
Sat Jan 27 01:08:53 UTC 2007


On Jan 26, 2007, at 7:40 PM, Alan Humpherys wrote:

> [[NSImage alloc] initWithContentsOfFile:fileName]
>
> Or, if that fails, you can open it using the QuickTime libraries  
> (as a movie) and it will search out the format & select the right  
> one, then you can get an NSImage from it...
>
> (I don't have the code in front of me for that, so I had better don  
> my asbestos suit)
>

Sorry, neither jmpp nor I provided much context.

The problem is that we have image data that we are pretty is some  
image.  We don't know the format... but we need to write it out to  
disk for use elsewhere.  10.4's WebKit doesn't care whether format  
and extension match.. so if I write a PNG file out as "image.gif", it  
loads just fine.  In 10.3, though, it fails to load, apparently... so  
we want to figure out, given an NSImage, what extension to put on it  
when we write it to disk.

-Evan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070126/fbbdf6e1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070126/fbbdf6e1/attachment.sig>


More information about the devel mailing list