• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Pop-Up Graphical Calendar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Pop-Up Graphical Calendar
      • From: Brad Gibbs <email@hidden>
References: 
 >Pop-Up Graphical Calendar (From: Brad Gibbs <email@hidden>)

  • Prev by Date: Interface Builder - QTMovieView related eror
  • Next by Date: Re: Forcing garbage collection, freeing up memory, thrashing
  • Previous by thread: Pop-Up Graphical Calendar
  • Next by thread: Re: Pop-Up Graphical Calendar
  • Index(es):
    • Date
    • Thread