Re: CoreData - cannot load .sqlstore if path contains Alias folder
Re: CoreData - cannot load .sqlstore if path contains Alias folder
- Subject: Re: CoreData - cannot load .sqlstore if path contains Alias folder
- From: "Simon Liu" <email@hidden>
- Date: Thu, 6 Sep 2007 00:29:26 +0100
> If you are storing a path in your user defaults it's possible that the
> user could replace a component with a Finder alias file; in that case,
> however, instead of a bare path you should really be storing an alias
> record (using BDAlias, NDAlias, or the like) in your user defaults.
> When you resolve that alias record to a path, the path will be fully-
> resolved and not one that tries to traverse Finder alias files.
Thanks for the detailed reply. I think this was discussed before, but
just for clarification w/regards to BDAlias: if a user moves a
file/folder (which we have based a BDAlias upon and stored in
defaults), and in its original place creates a new file/folder with
the same name, which one will BDAlias resolve to, when restored from
defaults? The original moved item, or the newly created one? Does
BDAlias resolve a path first, and if invalid, then resolve its Alias
record?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden