Re: FSRef -> NSString
Re: FSRef -> NSString
- Subject: Re: FSRef -> NSString
- From: email@hidden
- Date: Thu, 16 Jan 2003 02:45:55 -0800
>
You can also save and restore the alias as an NSData, so you don't store (fragile) textual paths in data files, preferences, etc.
I've noted that FSRefs behave correctly on UFS volumes, which is to say they don't break when the file path changes (during runtime). However I'm unaware of AliasHandles break under similar circumstances. Since an Alias on a UFS volume is like an HFS+ Alias without the FileID (and host FolderID) I'm inclined to believe they will break like symlinks even at runtime.
For this reason and others I believe FSRefs ought to be used at runtime for file primitives.
_______________________________________________
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.