Re: NSDatePicker: Multiple selections?
Re: NSDatePicker: Multiple selections?
- Subject: Re: NSDatePicker: Multiple selections?
- From: Troy Stephens <email@hidden>
- Date: Tue, 12 Jul 2005 11:47:48 -0700
On Jul 11, 2005, at 9:59 PM, Matt Baker wrote:
I realize NSDatePciker arrived with Tiger and there's at least a
few requested modifications, but I was wondering if anyone could
brainstorm a solutions to this problem:
Currently, NSDatepicker can only return one highlighted date. If
there a way to convince it to highlight multiple dates? For
instance, if given a dictionary/array/etc of dates: 2005-07-12,
2005-07-15,2005-08-01... it will give some indication that those
dates are highlighted.
An NSDatePicker instance can presently only have a single NSDate value.
Can this be done by overlaying some type of grid above the control?
Can the control give coordinates of a date, or would such a
solution require I programatically determine the position of a date?
There currently isn't any API facility for determining the position
of a day in the calendar grid. (That would be nice to have in the
future, I suppose.)
The grid -is- regular, so you could figure out its layout metrics
empirically and do your own overlay drawing in a subclass of
NSDatePickerCell if you wanted to, but note that the current metrics
may be subject to change in the future.
Troy
_______________________________________________
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