Re: Notification for if User changes Finder Label on File
Re: Notification for if User changes Finder Label on File
- Subject: Re: Notification for if User changes Finder Label on File
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 20 Nov 2012 20:16:42 +0100
You can use the libdispatch to monitor file changes (using DISPATCH_SOURCE_TYPE_VNODE).
You can also use a kqueue to look for change on a specific file. If you want a Cocoa wrapper, there is the well known UKKQueue class available on the net.
Both solutions are far more efficient if you have to monitor only a couple of files.
Le 20 nov. 2012 à 19:21, Michael Starke <email@hidden> a écrit :
> Sorry for asking this question again, but i did not find any more details about how to improve what I want to achive or if the way i do it is the only way to go.
>
> Therfore I'm politly asking again.
>
> Situation is, that I need to watch a file (Volume to be precise) for any changes the user makes to it's label. Currently I have a FSEventStream callback that watches the volume path and I react to kFSEventStreamEventFlagItemXattrMod since this gets modified on a Label change.
>
> Is there a more elegant way to look for this speical change or am I on the right track?
>
> -Michael
> --
> ___m i c h a e l s t a r k e____
> geschäftsführer
> HicknHack Software GmbH
> www.hicknhack-software.com
>
> ___k o n t a k t____
> +49 (170) 3686136
> email@hidden
>
> ___H i c k n H a c k S o f t w a r e G m b H____
> geschäftsführer - maik lathan | andreas reischuck | michael starke
> bayreuther Straße 32
> 01187 dresden
> amtsgericht dresden HRB 30351
> sitzt - dresden
> _______________________________________________
>
> 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
-- Jean-Daniel
_______________________________________________
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