• 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: CoreData - cannot load .sqlstore if path contains Alias folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: CoreData - cannot load .sqlstore if path contains Alias folder
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 5 Sep 2007 18:42:36 -0700

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:
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>)

  • Prev by Date: Re: CoreData - cannot load .sqlstore if path contains Alias folder
  • Next by Date: Re: ObjC BOOL and boolean c expressions
  • Previous by thread: Re: CoreData - cannot load .sqlstore if path contains Alias folder
  • Next by thread: Re: CoreData - cannot load .sqlstore if path contains Alias folder
  • Index(es):
    • Date
    • Thread