A file's icon in daemon?
A file's icon in daemon?
- Subject: A file's icon in daemon?
- From: Karl Moskowski <email@hidden>
- Date: Wed, 14 May 2008 12:36:58 -0400
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@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden