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

Re: Locating moved or renamed file


  • Subject: Re: Locating moved or renamed file
  • From: Bartlomiej Cichosz <email@hidden>
  • Date: Sun, 9 Nov 2003 10:51:36 -0500

Thanks to both Ryan and Nick for pointing me to Carbon aliases. I should be able to figure it out from here.

Bart



On Nov 9, 2003, at 2:07 AM, Ryan McGann wrote:

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.
iTunes is using Carbon aliases. Aliases follow files when they're moved and renamed, even across volumes. Look at Aliases.h in CarbonCore (which is inside the CoreServices framework). There are some freeware Cocoa frameworks that are wrappers for the Carbon functions; one popular one (which I didn't write, nor have used, but have seen others mention it) is http://homepage.mac.com/nathan_day/.

Ryan
email@hidden

Arguing with an engineer is like wrestling with a pig in mud.
After a while, you realize the pig is enjoying it.
_______________________________________________
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.
_______________________________________________
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.

References: 
 >Re: Locating moved or renamed file (From: Ryan McGann <email@hidden>)

  • Prev by Date: Re: NSUserDefaultsController
  • Next by Date: Re: Setting a horizontal divider in an NSOutlineView
  • Previous by thread: Re: Locating moved or renamed file
  • Next by thread: Programmatically setting NSArrayController's contentArray
  • Index(es):
    • Date
    • Thread