• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
A file's icon in daemon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Cocoa and Carbon
  • Next by Date: Re: Bypassing Interface Builder
  • Previous by thread: Re: Can I use NSString classes SYNCHRONOUSLY?
  • Next by thread: Conditionally modifying NIBs?
  • Index(es):
    • Date
    • Thread