• 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
Locating moved or renamed file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Locating moved or renamed file


  • Subject: Locating moved or renamed file
  • From: Bartlomiej Cichosz <email@hidden>
  • Date: Sun, 9 Nov 2003 00:45:50 -0500

Greetings all,

I am new to Cocoa programming and I am learning by trying to write a photo album application. I was wondering if someone could point me in the direction of a solution to the following problem:

If I store a reference to a file as path and filename, whenever the file is renamed or moved, I loose that link. This does not happen, for example, in iTunes - the app appears to be keeping track of songs in its library even if they are moved or renamed via Finder. My first guess was that inode number is stored as well, but I don't see a way of finding out the location from inode number, at least not without traversing the filesystem (and the number could point to multiple filenames). So, there has to be another mechanism to do this.

I'd appreciate any help.

Bart
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Locating moved or renamed file
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: NSTableView and NSPopUpButton
  • Next by Date: Re: Locating moved or renamed file
  • Previous by thread: Re: NSTableView and NSPopUpButton
  • Next by thread: Re: Locating moved or renamed file
  • Index(es):
    • Date
    • Thread