Re: Using an auto incremented NSNumber as attribute in a NSManagedObject
Re: Using an auto incremented NSNumber as attribute in a NSManagedObject
- Subject: Re: Using an auto incremented NSNumber as attribute in a NSManagedObject
- From: "I. Savant" <email@hidden>
- Date: Thu, 6 Mar 2008 16:52:48 -0500
> - (void)awakeFromInsert
> {
> static int tempID = 1;
>
> [super awakeFromInsert];
> self.employeeID = [NSNumber numberWithInt:tempID++];
> }
What do you think will happen when the application is quit, then run
the next time? How will it remember the last tempID?
--
I.S.
_______________________________________________
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