In my app, I'm currently using two textual NSDatePicker
objects to designate a start & end date, respectively. The individual value
keys have a corresponding Date
attribute in my Core Data store.
Ideally, I'd like to go down to one graphical NSDatePicker
object configured in NSRangeDateMode
. Programmatically, I can retrieve this interval, via [myDatePicker timeInterval]
.
There is a discussion here about how it's impossible to use Cocoa bindings directly with timeInterval
, but is anyone aware of a piece of recent OSX API magic that'll make this happen?
(A kludge would be along the lines of a separate NSNumber
attribute in the CoreData store that would be set/get in a CD category addition to the parent NSManagedObject entity that would parallel the set/get on the primary time value attribute -- possibly via a separate NSNotification
.)