Re: Tracking moved documents
Re: Tracking moved documents
- Subject: Re: Tracking moved documents
- From: Mark Piccirelli <email@hidden>
- Date: Fri, 5 Oct 2001 15:49:05 -0700
Rainer --
Overriding -[NSDocument setFileName:] is the right way to find out when
a document's been moved or renamed. (Don't forget to invoke [super
setFileName:].)
Are you sure it's not being called? Assuming you're talking about 10.1,
in which document tracking first appears, and assuming that your app is
not doing anything special to update the document window's proxy
icon/pulldown menu, the proxy icon updating is done by a method that's
invoked by -[NSDocument setFileName:], so if the icon's being updated,
-setFileName: must be being called.
-- Mark
On Friday, October 5, 2001, at 03:17 PM, Rainer Brockerhoff wrote:
My document window indeed shows the change in the proxy icon, but
-setFileName doesn't seem to get called when that happens - nor does
any other method I could think of.
Does anybody have more info on how to get a notification that the file
have been changed?