• 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: Tracking moved documents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


References: 
 >Tracking moved documents (From: Rainer Brockerhoff <email@hidden>)

  • Prev by Date: Re: retainCount
  • Next by Date: Re: retainCount
  • Previous by thread: Tracking moved documents
  • Next by thread: Controls drawing over views
  • Index(es):
    • Date
    • Thread