• 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
fileDidClose Notification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fileDidClose Notification?


  • Subject: fileDidClose Notification?
  • From: Brian Amerige <email@hidden>
  • Date: Wed, 11 Jul 2007 14:14:34 -0400

Hi all,

I use UKKQueue for notifications about when a file was written to, but the problem is that I can't seem to find anyway to tell when the application that's opened the file has actually closed it. This is particularly necessary in an FTP-client "Edit With" functionality, which is actually what I'm working on. I download the file to a temporary directory, register for notifications on that file, and open it in the target application. When I receive the appropriate notifications from UKKQueue, I re-upload (overwriting) the file. The thing is, even after the user closes that file in the target app, or quits the app, UKKQueue is still looking to distribute notifications on that file --- which means I receive them if they exist.

It's not exactly something the user will ever notice, but nevertheless, it'd be nice not to have UKKQueue looking for files I no longer care about hearing about. If I was able to receive some sort of fileDidClose: notification, I could simply remove them from the queue. Granted, I could subsribe to NSWorkspaceDidTerminateApplicationNotification, but the behavior of closing the app and closing the file is the same on my end, and that still leaves the "close the app but don't quit the app" scenario open- ended.

Any thoughts?


Brian Amerige: Software at Extendmac email@hidden | aim - applejustworks

_______________________________________________

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


  • Prev by Date: Re: How to keep creation/modification date of a (Core Data) object?
  • Next by Date: Formatting number for leading zeros
  • Previous by thread: Re: Finding windows made in Interface Builder?
  • Next by thread: Formatting number for leading zeros
  • Index(es):
    • Date
    • Thread