Skip navigation.
 
mlA file's icon in daemon?
FROM : Karl Moskowski
DATE : Wed May 14 18:36:58 2008

From reading Apple's technote tn2083, I know AppKit is not a daemon-
safe framework. However, I found an old post to the list that said 
it's long been possible to use NSImage "headlessly" by linking against 
AppKit anyway, calling [NSApplication sharedApplication] somewhere, 
then doing the NSImage stuff.
<http://www.cocoabuilder.com/archive/message/cocoa/2005/5/20/136460>

Is it also possible to use the NSWorkspace method iconForFile: in this 
context as well? I can then iterate over the icon's representations, 
finding the appropriately sized one and converting it to the 
appropriate file type. If not, is there a daemon-safe way to do this 
on Leopard?

Thanks.

----
Karl Moskowski <<email_removed>>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

Related mailsAuthorDate
No related mails found.