fileDidClose Notification?
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