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 michael.sta...@hicknhack-software.com
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
cont...@hicknhack.com
___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 (Cocoa-dev@lists.apple.com)
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/devlists%40shadowlab.org
This email sent to devli...@shadowlab.org
-- Jean-Daniel
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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 arch...@mail-archive.com