Determine whether a file has a custom icon
Determine whether a file has a custom icon
- Subject: Determine whether a file has a custom icon
- From: Adrian Ross <email@hidden>
- Date: Tue, 4 Dec 2007 12:07:54 +1300
Hi there,
Can anyone help me determine whether a file or folder has a custom
icon? For example, I'd like to know whether the Finder would display
the default folder icon for a given folder, or some other icon.
I know I can use +iconForFile in NSWorkspace to get an NSImage of the
icon in question, but I don't know how to tell whether this is a
default icon or a custom one.
A previous proposed solution on this list was to use kHasCustomIcon in
the Finder flags. This is rarely set and doesn't do the trick.
Thanks,
Adrian
_______________________________________________
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