NSTableView, NSDateFormatter, CoreData
NSTableView, NSDateFormatter, CoreData
- Subject: NSTableView, NSDateFormatter, CoreData
- From: Space Ship Traveller <email@hidden>
- Date: Mon, 14 Dec 2009 05:26:17 +0900
Hello,
I have a NSTableView with a CoreData model. This model is irrelevant except for the fact that at least one model class has an optional date field.
I have an NSDateFormatter instantiated in the NIB since there are several columns sharing the same formatting behavior.
When the user enters in a date, this is saved correctly. When the user blanks out the field, I get an error
The value "" is invalid.
Please provide a valid value.
[ Discard Change ] [ OK ]
I can't figure out how to accept a blank input, and map this blank input to nil in the CoreData model. I've tried several things but nothing seems to work.
Kind regards,
Samuel_______________________________________________
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