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 PROTECTED]>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to