• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File/Directory Notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File/Directory Notifications


  • Subject: Re: File/Directory Notifications
  • From: Robert Cerny <email@hidden>
  • Date: Mon, 26 Jul 2004 16:17:46 +0200

Him
check UKKqueue at <http://www.zathras.de/programming/cocoa_stuff.php>

HTH
Robert]

On 26.7.2004, at 16:00, Manish shrikant shet wrote:

Hi List,
I am looking for a notification from the Finder whenever there is a
change to the file system. In particular, I am interested in only specific
files and not the whole file system.

I tried using the FN* API's available in Carbon like FNSubscribe but
it seems that my application gets the notification only when my application
comes in the foreground which is not acceptable to me.

I also had a look at the NSWorkspace class available in Cocoa. I
tried registering for WorkspaceDidPerformFileOperationNotification but I was
not able to get any notification when any file operation was done. The
other method which could have helped me was fileSystemChanged but it seems
to be unimplemented.

I noticed that the finder is broadcasting a notification
"com.apple.carbon.core.DirectoryNotification" whenever a file operation is
performed but could not find any related documentation. Is it undocumented?
Will it be safe to bank on this notification? If yes, can I find out
exactly what event caused the notification, which file/directory was
modified?

Is there any better way of getting this information?

Thanks in advance.



Regards,
Manish



This message is free from Virus - IMSS
_______________________________________________
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.
_______________________________________________
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: 
 >File/Directory Notifications (From: Manish shrikant shet <email@hidden>)

  • Prev by Date: Re: Stopping on objc exceptions in Xcode
  • Next by Date: Re: [Feature-Nag] Ability to call modal dialogs/sheets with input?
  • Previous by thread: File/Directory Notifications
  • Next by thread: Re: Stopping on objc exceptions in Xcode
  • Index(es):
    • Date
    • Thread