NSDatePicker graphical representation in popover when changing date

1k Views Asked by At

Is it possible for NSDatePicker natively enable functionality to show graphical implementation in popover when changing date? Such functionality now exists in OS X Calendar and Reminders.

Or I need to implement such functionality by myself? If so, maybe there are such third party implementations?

3

There are 3 best solutions below

0
On

What he's asking is something a bit different. In the Apple Calendar app, you have a TEXT NSDatePicker control. When the user taps on the control it extends into a popover for the graphical calendar.

https://www.dropbox.com/s/yzkeaqubq8u8cp4/Screenshot%202014-12-13%2000.02.19.png?dl=0

I'd personally like to get an answer on how to do that as well.

0
On

Do what @LighteningKid suggests, and then something like this: #import

@interface DateCalendarPopOverViewController : NSViewController <NSDatePickerCellDelegate, NSPopoverDelegate>

@property (assign) IBOutlet NSDatePicker *graphicCalendar;

- (IBAction)datePicked:(id)sender;

@end
0
On

You can create a popover and place an NSDatePicker inside it, then in Interface Builder choose for the NSDatePicker to be graphical. That's really all there is to it, but perhaps you need to clarify the question if there's more to what you're expecting.