Originally created by @puelocesar on GitHub (Apr 2, 2019).
I have an uriRepresentation of an NSManagedObject saved somewhere in my app, and I want to fetch that object using CoreStore.
Problem is, NSPersistentStoreCoordinator().managedObjectID(forURIRepresentation: url) always returns nil for me.
Is there a special way of doing this on CoreStore?
Originally created by @puelocesar on GitHub (Apr 2, 2019).
I have an uriRepresentation of an NSManagedObject saved somewhere in my app, and I want to fetch that object using CoreStore.
Problem is, `NSPersistentStoreCoordinator().managedObjectID(forURIRepresentation: url)` always returns nil for me.
Is there a special way of doing this on CoreStore?
CoreStore doesn't really do anything special here, so there's probably something in the way you're using uriRepresentation.
Are you sure that the uriRepresentation you are saving are not from temporary object IDs?
@JohnEstropia commented on GitHub (Apr 12, 2019):
CoreStore doesn't really do anything special here, so there's probably something in the way you're using `uriRepresentation`.
Are you sure that the `uriRepresentation` you are saving are not from temporary object IDs?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @puelocesar on GitHub (Apr 2, 2019).
I have an uriRepresentation of an NSManagedObject saved somewhere in my app, and I want to fetch that object using CoreStore.
Problem is,
NSPersistentStoreCoordinator().managedObjectID(forURIRepresentation: url)always returns nil for me.Is there a special way of doing this on CoreStore?
@JohnEstropia commented on GitHub (Apr 12, 2019):
CoreStore doesn't really do anything special here, so there's probably something in the way you're using
uriRepresentation.Are you sure that the
uriRepresentationyou are saving are not from temporary object IDs?