• 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: Ondra Cada <email@hidden>
  • Date: Wed, 24 Jul 2002 04:35:34 +0200

On Wednesday, July 24, 2002, at 04:23 , Ondra Cada wrote:

My application wants to determine whether two files use the same icon or not, and iconForFile: won't tell me that (short of comparing all the bitmap pixels and wasting lots of spacetime, which I'd really rather not have to do.)

Hmmmm. You mean you get different NSImages with the same contents for different files which share the same icon? It is possible, but I would be surprised.

Incidentally, what do you need it for? It sounds like an *extremely* strange goal.

If you wanna check whether different files are of the same type, well, the -getInfoForFile:application:type: should be used here. Icons are to be used for display only; they should not be used for any substantial task. An icon for given file migth be different in different times (since, eg., the user changed application assignment meanwhile, or just installed a new app, or removed old one, or whatever)...
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.
  • Follow-Ups:
    • How to find icon file path, Part II
      • From: Chris Anderson <email@hidden>
    • Re: How to find icon file path?
      • From: Charles Srstka <email@hidden>
References: 
 >Re: How to find icon file path? (From: Ondra Cada <email@hidden>)

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