Unique data in Core Data?
Unique data in Core Data?
- Subject: Unique data in Core Data?
- From: Andrew Kinnie <email@hidden>
- Date: Wed, 21 Jun 2006 08:38:19 -0700
I am curious whether there is a quick and easy way to create unique data in a Core Data app. For example, I have a small table with an attribute "itemType" which is a string. I want the string to be unique, so only one row in the database will have any particular string.
Therefore, I could do a fetch of this table and get back an equal number of objects as I have separate itemTypes. I could then create a separate tabViewItem with a title based on the itemType string for each object returned from the fetch when creating my interface's tabView. (e.g. dynamically generating the interface based on the user's decisions)
Is this easily doable? Is this sensible?
Thanks.
Andrew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden