Re: NSDatePicker : Displaying and binding to nil.

2014-05-20 Thread Jonathan Mitchell
On 20 May 2014, at 11:35, Rob Petrovec wrote: > I haven’t looked at your code, but why not use a nil placeholder value when > binding? Pass an options dictionary with a key / value pair of > NSNullPlaceholderBindingOption / to the > -bind:… method, or specify the value for the nil placehold

Re: NSDatePicker : Displaying and binding to nil.

2014-05-20 Thread Rob Petrovec
I haven’t looked at your code, but why not use a nil placeholder value when binding? Pass an options dictionary with a key / value pair of NSNullPlaceholderBindingOption / to the -bind:… method, or specify the value for the nil placeholder in the nib. Something like: [datePicker bind: NSVal

NSDatePicker : Displaying and binding to nil.

2014-05-15 Thread Jonathan Mitchell
NSDatePicker cannot display or bind to a nil dateValue so I have put together something that might be of use when binding to NSDate instances that might be nil. https://github.com/ThesaurusSoftware/TFDatePicker Subclassing NSDatePickerCell is made difficult because NSDatePickerCell does not ca