Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker
Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker
- Subject: Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker
- From: mmalc Crawford <email@hidden>
- Date: Thu, 16 Dec 2010 17:56:30 -0800
On Dec 16, 2010, at 3:45 pm, Flavio Donadio wrote:
> [self setValue:[NSDate date] forKey:@"datePurchased"];
>
Don't use KVC to set managed object properties unless you have a good reason (dynamic code). Core Data generates accessor methods for you that are much more efficient to use:
[self setDatePurchased:[NSDate date]];
mmalc
_______________________________________________
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