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: Flavio Donadio <email@hidden>
- Date: Fri, 17 Dec 2010 19:24:11 -0200
mmalc,
Lesson learnt, but I took that code directly from Apple. Check Movie 11 on this page:
http://developer.apple.com/cocoa/coredatatutorial/index.html
I think the code you suggested would work better and is even more readable.
Thanks for the tip!
Cheers,
Flavio
On 12/16/2010, at 23:56, mmalc Crawford wrote:
> 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