poyo fever.
poyo fever.

Reputation: 752

get row number of an NSManagedObject in core data

i want to know if there is a function in core data to get the row number of a NSManagedObject with a specific id?

Upvotes: 1

Views: 336

Answers (1)

Wain
Wain

Reputation: 119031

There is no row number. Don't think in terms of tables, it's an (unordered) object store. The data is often backed in an SQLite store, but not necessarily.

If you need to specify some ordering then you should store and maintain your own order attribute on the entity and use that.

Upvotes: 2

Related Questions