Re: How to find icon file path?
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.