Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[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?



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

This email sent to 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.