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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to