Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-17 Thread mmalc Crawford
On Dec 17, 2010, at 1:24 pm, Flavio Donadio wrote: > Lesson learnt, but I took that code directly from Apple. Check Movie 11 on > this page: > http://developer.apple.com/cocoa/coredatatutorial/index.html > That's an overview tutorial from several years ago, prior to the introduction of dynami

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-17 Thread Flavio Donadio
mmalc, I meant Movie 13. Cheers, Flavio On 17/12/2010, at 19:24, Flavio Donadio wrote: > 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 suggest

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-17 Thread Flavio Donadio
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

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-16 Thread mmalc Crawford
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:

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-16 Thread Flavio Donadio
Devarshi, These are pretty simple. > It is now working correctly when I am entering the price with $ symbol > prefixed, eg. $123,00 :) > > I think that this is not user intuitive, user may not always know that he/ > she has to prefix dollar symbol. I think it would have been good if: > > 1. I

Re: Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-16 Thread Andreas Grosam
On Dec 16, 2010, at 11:38 AM, Devarshi Kulshreshtha wrote: > Hi Pat, > > Regarding: > > For #1, you have an non-ascii character at the front of the number formatter >> (in IB). Guess, ยค (\u00A4) is the "localized currency symbol" defined in the "International Components for Unicode" Library (I

Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-16 Thread Devarshi Kulshreshtha
Hi Pat, Regarding: For #1, you have an non-ascii character at the front of the number formatter > (in IB). It is now working correctly when I am entering the price with $ symbol prefixed, eg. $123,00 :) I think that this is not user intuitive, user may not always know that he/ she has to prefi

Core data - binding related problem in NSNumberFormatter and NSDatePicker

2010-12-14 Thread Devarshi Kulshreshtha
Hi all, I am trying a core-data sample application, from Cocoa Programming - Aaron Hillegass. In it there is an entity Car, with following properties: 1. condition - Int 16 2. datePurchased - Date 3. makeModel - String 4. onSpecial - Boolean 5. photo - Binary 6. price - Decimal There are certai