• 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: Clark Mueller <email@hidden>
  • Date: Wed, 24 Jul 2002 00:52:40 -0600

My instinct here, actually, would be to find out the file's kind string (Volume, Folder, Microsoft Word document...), because those icons should be the same for the same kind. Barring that, I wonder if isEqual: would be acceptable for you? Or is that what you're trying to avoid?

Clark

On Tuesday, July 23, 2002, at 08:35 PM, Ondra Cada wrote:


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


Clark Mueller
email@hidden
---
http://www.finikin.com/
http://www.finikin.com/clark/
---
Computer programmers don't byte, they nibble a bit.
_______________________________________________
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:
    • Re: How to find icon file path?
      • From: Ondra Cada <email@hidden>
  • Prev by Date: RE: what does signal 10 (SIGBUS) mean?
  • Next by Date: Re: Writing (not reading) XML
  • Previous by thread: Re: How to find icon file path?
  • Next by thread: Re: How to find icon file path?
  • Index(es):
    • Date
    • Thread