Re: Icon Overlay on Mac OSX
Re: Icon Overlay on Mac OSX
- Subject: Re: Icon Overlay on Mac OSX
- From: KappA <email@hidden>
- Date: Thu, 02 Aug 2012 21:54:43 -0400
I have been playing around with that -
get the attributes
get the icon
composite the overlay
set the icon
set the attributes
When I print out the attributes before/after they match - now this only
works for files that you have access to (it failed for a few files owned by
root).
I am not sure how this affects MD5 checksum, I am going to look into that
next...
On Thu, Aug 2, 2012 at 9:21 PM, Alfian Busyro <email@hidden>wrote:
> Which you guys mean I have to create the overlay to an Image it self then
> stick it to a file icon ?
> I'd try this before but nothing was changed. maybe I'll have try this once
> again.
>
> And for file attributes, can we use setAttributes:ofItemAtPath:**error:
> from NSFileManager ?
> because there is NSFileModificationDate attributes for in this function.
>
> Regards,
> Alfian
>
> On 12/08/03 5:47, Charles Srstka wrote:
>
>> On Aug 2, 2012, at 3:41 PM, KappA <email@hidden> wrote:
>>
>> 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...
>>>
>> In addition to this, it will hose any custom icons that the user might
>> have set on the files.
>>
>> Charles
>>
>> ______________________________**_________________
>>
>> 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<http://lists.apple.com>
>>
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/**mailman/options/cocoa-dev/**
>>
>> This email sent to email@hidden
>>
>
> ______________________________**_________________
>
> 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<http://lists.apple.com>
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
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