• 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
NSDatePickerCell in an NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDatePickerCell in an NSTableView


  • Subject: NSDatePickerCell in an NSTableView
  • From: Wil Turner <email@hidden>
  • Date: Wed, 11 May 2005 14:48:29 -0400

Hi, I've been working with the new NSDatePicker UI element and have run into a small problem. I'd like to set the dataCell of an NSTableColumn as a date picker. It works, except that editing the date only works on the hour field (I'm displaying hours/minutes only) of the date using the arrow button in the cell. Here's the code where I set the dataCell:

    NSDatePicker *datePicker = [[NSDatePicker alloc] init];
    [datePicker setDatePickerElements:NSHourMinuteDatePickerElementFlag];
    [startCol setDataCell:[datePicker cell]];

I've also tried just creating the NSDatePickerCell directly rather than the NSDatePicker, but that doesn't seem to matter.

Thanks,

Wil
 _______________________________________________
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

  • Follow-Ups:
    • Re: NSDatePickerCell in an NSTableView
      • From: Troy Stephens <email@hidden>
  • Prev by Date: Re: QTKit: QTMovieView
  • Next by Date: Re: QTKit: QTMovieView
  • Previous by thread: Re: Mixed Carbon/Cocoa Photoshop plugin unloadable?
  • Next by thread: Re: NSDatePickerCell in an NSTableView
  • Index(es):
    • Date
    • Thread