NSDatePicker and NSNull
NSDatePicker and NSNull
- Subject: NSDatePicker and NSNull
- From: Tore Halset <email@hidden>
- Date: Sat, 23 Sep 2006 00:35:53 +0200
Hello.
I have a Dictionary with different property values for an entity. One
of the values are a date, but it can be NSNull. NSDatePicker does not
handle the null-value and give the following error message:
Cannot create date from object <null> of class NSNull
What is a good way to handle this situation. Should I have a check
box for "has date". Setting it set the default date to something and
enables the date picker. Unsetting it disable the date picker. Any
other solution?
Regards,
- Tore.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden