• 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
how do i re-hydrate a core data URIRepresentation without knowing the PSC?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how do i re-hydrate a core data URIRepresentation without knowing the PSC?


  • Subject: how do i re-hydrate a core data URIRepresentation without knowing the PSC?
  • From: Ken Victor <email@hidden>
  • Date: Thu, 29 Jun 2006 17:05:09 -0700

given that i can "archive" an NSManagedOBject instance via:

[coder encodeObject: [[instance objectID] URIRepresentation] forKey: @"objectIdKey"];

how do i go about getting back the NSManagedObject? more specifically, managedObjectIDForURIRepresentation needs to be sent to a PersistantStoreCoordinator instance and given that i'm in a multi-doc environment, how do to find which PSC corresponds to a URI? (same problem exists if i try to use objectWithID... ie, in a multi-doc environment, how do i know which MOC to message?).

thanx,
ken

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: [Q] Project templates for the Eclipse?
  • Next by Date: Re: [Q] Project templates for the Eclipse?
  • Previous by thread: Re: Sorting an NSTableView by code
  • Next by thread: Untitled files and NSApp delegate
  • Index(es):
    • Date
    • Thread