Re: Unique items in Core Data models
Re: Unique items in Core Data models
- Subject: Re: Unique items in Core Data models
- From: Sam Stigler <email@hidden>
- Date: Tue, 15 May 2007 11:45:54 +1000
That's a good question.... you'd hope so, considering that it's based
on SQLite.... You might have more luck in a search for this if you
use the term "key" instead of "unique item" -- in relational database
terms, what you want is for the title to be the key. (See http://
en.wikipedia.org/wiki/Relational_database#Keys.)
On May 15, 2007, at 11:38 AM, Keith Penrod wrote:
Is there a way to set it up so that one of the attributes for an
Entity is a sort of identifier--that is, every Book has a title and
only one book can exist for any given title--kind of like a
NSDictionary? So, if the user tries to create a new item and name
it the same title it will either ignore the request, combine the
info for the two books, or raise an error message.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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