• 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 System Notifications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File System Notifications


  • Subject: Re: File System Notifications
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 18 Jun 2008 09:25:47 +0200


Le 18 juin 08 à 04:04, Omar Qazi a écrit :

I'm a little confused about file system notifications in Cocoa. In NSWorkspace, it says that the method for subscribing to file system notifications will always return NO, which seems useless to me. I know Carbon has the FNSubscribe() and FNUnsubscribe() functions, but can I use those to get a notification when another application opens a file? If not is there any way I can achieve this?

Omar Qazi
Hello, Galaxy!
1.310.294.1593

I don't know if FNSubscribe was updated, but it wasn't realiable in the past. I recommend kqueue or FSEvent to get fs notifications. (search for UKKueue to get a cocoa wrapper).



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >File System Notifications (From: Omar Qazi <email@hidden>)

  • Prev by Date: Re: Grand Central Details
  • Next by Date: Re: Getting all subclasses
  • Previous by thread: Re: File System Notifications
  • Next by thread: Re: File System Notifications
  • Index(es):
    • Date
    • Thread