I believe setIcon updates the file modification date... (please check as I can't remember for sure)... which might go against what a file tracking system might be trying to do.
i.e. will give false file modification updates because of setting the updated icons. If there is a way to do that without updating the file attributes, it would work perfectly... Kappa. On Thu, Aug 2, 2012 at 4:22 PM, Uli Kusterer <[email protected]>wrote: > On 02.08.2012, at 07:47, Jens Alfke <[email protected]> wrote: > > Set custom icons for the files? (I have no idea how custom file icons > are done nowadays, though. They used to be stored in the resource fork, but > that's been deprecated for a decade now. Maybe they're in extended file > attributes?) > > NSWorkspace has a setIcon: forPath: method (or something like that) for > this purpose. I think it was added around 10.6, might even be older. Or > maybe it was NSFileManager. I mentioned it previously in this thread, not > gonna look it up a second time. > > Cheers, > -- Uli Kusterer > "The Witnesses of TeachText are everywhere..." > > > > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/rejekted%40gmail.com > > This email sent to [email protected] > _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
