Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreData - cannot load .sqlstore if path contains Alias folder



On Sep 5, 2007, at 4:29 PM, Simon Liu wrote:

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?

The BDAlias class is not special, it doesn't do any special-case handling of paths versus alias records or anything like that; it just represents an alias record. And it just calls through to the Carbon Alias Manager to resolve the alias record it represents when asked. You can see that from its source code.


So the answer is that it will do whatever the Carbon Alias Manager does, which has differed on different on different versions of the operating system. Mac OS X 10.2 and later (and System 7 through Mac OS 9.2.2) check the path embedded in the alias record first when resolving aliases, while Mac OS X 10.0 and 10.1 checked the file ID first. See this thread from 5+ years ago for details and history <http://lists.apple.com/archives/cocoa-dev/2002/Aug/msg01826.html >.

  -- Chris

_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >CoreData - cannot load .sqlstore if path contains Alias folder (From: "Simon Liu" <email@hidden>)
 >Re: CoreData - cannot load .sqlstore if path contains Alias folder (From: Chris Hanson <email@hidden>)
 >Re: CoreData - cannot load .sqlstore if path contains Alias folder (From: "Simon Liu" <email@hidden>)
 >Re: CoreData - cannot load .sqlstore if path contains Alias folder (From: Chris Hanson <email@hidden>)
 >Re: CoreData - cannot load .sqlstore if path contains Alias folder (From: "Simon Liu" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.