0

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?

Vadim
  • 167
  • 1
  • 12

3 Answers3

1

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.

0

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
karlo kilayko
  • 60
  • 1
  • 7
0

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.

AlexK
  • 638
  • 6
  • 12