Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert
Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert
- Subject: Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert
- From: Chris Hanson <email@hidden>
- Date: Mon, 06 Apr 2009 11:48:03 -0700
On Mar 18, 2009, at 8:52 AM, Jon C. Munson II wrote:
I'm having a little trouble getting a self-incrementing attribute to
work in
the awakeFromInsert override.
What do you want to do with this attribute?
When using Core Data, you don't need to define your own primary or
foreign keys. Every object has an object ID that acts conceptually as
its primary key and is maintained for you by Core Data. Relationship
maintenance is similarly handled for you by Core Data.
-- Chris
_______________________________________________
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