re: CoreData _PK NSManagedObject
re: CoreData _PK NSManagedObject
- Subject: re: CoreData _PK NSManagedObject
- From: Ben Trumbull <email@hidden>
- Date: Wed, 17 Sep 2008 14:02:51 -0700
does somebody know a way to retrieve a NSManagedObject (whose db has
already been saved) if I know its _PK in sqlite ?
[snip]
The result gives me the Z_PK of objects. This Z_PK is the index in the
db.
NSManagedObject does not accept "_PK" key.
<nice> Please leave the Z_PK alone. It is not the column you are
looking for. </nice>
This is unsupported with extreme prejudice. Extreme. Prejudice.
You really ought to file a bug report for group by queries. Nobody
has asked for them, hence no feature.
Working within the public API, there is nothing stopping you from
creating your own unique ID field, like a UUID, and retrieving the
results with an IN query against your attribute.
- Ben
_______________________________________________
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