• 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: Brad Gibbs <email@hidden>
  • Date: Tue, 04 Nov 2008 17:09:52 -0800

It's setting a start date field for a Core Data entity. Once a date is selected, it updates two text fields -- one in a master table and another in the detail view (both of which are bound to the start date attribute). I suppose an action is being sent, but not one coded by me.



On Nov 4, 2008, at 3:27 PM, Graham Cox wrote:


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: Graham Cox <email@hidden>
References: 
 >Pop-Up Graphical Calendar (From: Brad Gibbs <email@hidden>)
 >Re: Pop-Up Graphical Calendar (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: CABasicAnimation, CALayers, and rotation
  • Next by Date: Re: Pop-Up Graphical Calendar
  • Previous by thread: Re: Pop-Up Graphical Calendar
  • Next by thread: Re: Pop-Up Graphical Calendar
  • Index(es):
    • Date
    • Thread