Re: Core Data: rules for custom managed object setter implementations

2009-11-20 Thread Jerry Krinock
Well, maybe if I give a wrong answer at least we'll get a discussion started. On 2009 Nov 20, at 08:32, Sean McBride wrote: > If I implement a custom setter for an NSManagedObject attribute, what > can I do? I do lots of stuff -- in particular, sending notifications to implement business logic

Core Data: rules for custom managed object setter implementations

2009-11-20 Thread Sean McBride
Hi all, If I implement a custom setter for an NSManagedObject attribute, what can/can't I do? For example, can I do nothing if the old and new values are the same? - (void)setSalary:(NSNumber*)newsalary { get current salary compare with newsalary if different [self willChange