• 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
NSDatePicker : Displaying and binding to nil.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDatePicker : Displaying and binding to nil.


  • Subject: NSDatePicker : Displaying and binding to nil.
  • From: Jonathan Mitchell <email@hidden>
  • Date: Thu, 15 May 2014 22:47:38 +0100

NSDatePicker cannot display or bind to a nil dateValue so I have put together something that might be of use when binding to NSDate instances that might be nil.

https://github.com/ThesaurusSoftware/TFDatePicker

Subclassing NSDatePickerCell is made difficult because NSDatePickerCell does not call - (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView to draw its interior.
I therefore obscure the controls persistent dateValue by setting the fore and background colours equal.

If anyone can think of a better approach I would be glad to hear it.

Jonathan













_______________________________________________

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: NSDatePicker : Displaying and binding to nil.
      • From: Rob Petrovec <email@hidden>
  • Prev by Date: Re: Client certificate extraction out of SSL/TLS Connection on server side
  • Next by Date: Re: DNS Lookup
  • Previous by thread: Re: Client certificate extraction out of SSL/TLS Connection on server side
  • Next by thread: Re: NSDatePicker : Displaying and binding to nil.
  • Index(es):
    • Date
    • Thread