Skip navigation.
 
mlRe: Using an auto incremented NSNumber as attribute in a NSManagedObject
FROM : I. Savant
DATE : Thu Mar 06 22:52:48 2008

>  - (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.