• 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 _PK NSManagedObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Utility/Floating window with titlebar on left side
  • Next by Date: Re: iPod Touch apps
  • Previous by thread: CoreData _PK NSManagedObject
  • Next by thread: QCView and NSGarbageCollector
  • Index(es):
    • Date
    • Thread