Core data - binding related problem in NSNumberFormatter and NSDatePicker
Core data - binding related problem in NSNumberFormatter and NSDatePicker
- Subject: Core data - binding related problem in NSNumberFormatter and NSDatePicker
- From: Devarshi Kulshreshtha <email@hidden>
- Date: Wed, 15 Dec 2010 10:52:05 +0530
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 certain view objects such as-
1. TableView
2. DatePicker
3. Image Well, etc.
Some of the bindings performed are-
1. TableView -> TableColumn with NSNumberFormatter (set as currency) ->
value: arrangedObjects.price
2. DatePicker -> value: selection.datePurchased
Problems are:
1. In TableColumn with NSNumberFormatter it is not accepting any decimal
numbers which I am entering for currency, such as - 123,00 or 123.45 or +235
or 567. It is always displaying this alert message: Formatting error.
2. Whenever I am selecting a row in table and changing its corresponding
value in date picker, it is simultaneously changing the values for other
records, ie. if for first row in table I have set it
to 12/25/2004, it is keeping it 12/25/2004 for other rows.
Can anyone help me to resolve my problems? The source code can be found
here: URL="http://db.tt/o9870RZ<http://www.google.com/url?sa=D&q=http://db.tt/o9870RZ&usg=AFQjCNEFKxI-FmHVUnl93xcd6LpCn22kfQ>
"
--
Thanks,
Devarshi
_______________________________________________
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