Re: Pop-Up Graphical Calendar
Re: Pop-Up Graphical Calendar
- Subject: Re: Pop-Up Graphical Calendar
- From: Graham Cox <email@hidden>
- Date: Wed, 5 Nov 2008 10:27:35 +1100
On 5 Nov 2008, at 10:15 am, Brad Gibbs wrote:
Hi,
I'm trying to replicate one of the pop-up calendars you see on
Orbitz, Hotwire, etc. , where the user clicks a calendar icon, the
calendar appears and then the calendar disappears once the user has
selected a date.
I've got a graphical NSDatePicker and I can show and hide it with an
NSButton and an IBAction, but I'd like to make the calendar hide
itself automatically after the user has selected a date. I don't
see a delegate method to notify a delegate that a date has been
selected. I suppose I could use a notification when the date has
been changed, but I'm wondering if there's a more elegant way to do
this. Maybe with bindings?
As NSDatePicker inherits from NSControl, it presumably supports target/
action. Does the action get sent when the date is clicked? If so you
could hide the picker then.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden