• 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
Re: How to find icon file path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find icon file path?


  • Subject: Re: How to find icon file path?
  • From: Matt Judy <email@hidden>
  • Date: Tue, 23 Jul 2002 19:43:03 -0700

On Tuesday, July 23, 2002, at 06:59 PM, Chris Anderson wrote:

I'm assuming this would look something like /System/Library/Whatever/Text.icns if I could get it.

Actually, that icon exists at:
/Applications/TextEdit.app/Contents/Resources/txt.icns

So, the source for NSFileManager iconForFile: clearly has figure out where to get its icon data from... what's the magic?

I'm assuming you mean NSWorkspace ;)

I'm almost certain that the "magic" is the Icon Services API. NSWorkspace probably uses an IconRef amd some of the Icon Services functions. If that is the case, NSWorkspace would have no idea where the actual icns file is located. If you wish, you can read more about Icon Services here:

http://developer.apple.com/techpubs/macosx/Carbon/HumanInterfaceToolbox/IconServUtili/
iconservicesandutilities.html

--Matt Judy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How to find icon file path? (From: Chris Anderson <email@hidden>)

  • Prev by Date: Re: iTunes3 AppleEvents?
  • Next by Date: Re: Error with most basic method
  • Previous by thread: Re: How to find icon file path?
  • Next by thread: Re: How to find icon file path?
  • Index(es):
    • Date
    • Thread