Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File Detection



My experience has been that the NSWorkspace notifications only fire when the change to the filesystem occurs from within your process (your app). External changes (Finder, etc) are not communicated to you via NSWorkspace. The only solution I found was to use FNSubscribe but this also proved to be unreliable 100% of the time.

-d


On Tuesday, April 29, 2003, at 10:20 AM, Andreas Schempp wrote:

Hi

No problem ;-)

[NSWorkspace noteFileSystemChanges:(NSString *)path] is surely not what you are looking for.
This functin does inform the system that there has been a file system change at *path*
The system can use this to update finder windows or something like this, if *path* is open...


Am Dienstag, 29.04.03 um 05:28 Uhr schrieb Anthony Cheung:

Hi Andreas,

Thanks for your help. I have studied NSWorkspace and found that method
noteFileSystemChanged:(NSString *)path. It said it gets the status of all
the files and directories it is interested in and updates itself
appropriately. Do you think that can help? Do you have some sample code for
this?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: File Detection (From: Andreas Schempp <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.