Skip to content

adamhartford/ASHDatePicker

Repository files navigation

NOTE: This project is obsolete. I've reimplemented it in Swift at https://github.com/adamhartford/PopDatePicker.

ASHDatePicker

ASHDatePicker is an NSDatePicker subclass that provides an attached NSPopover. It is bindings compatible.

Usage

  1. Add ASHDatePicker.h and ASHDatePicker.m to your project.
  2. Drop an NSDatePicker onto your view in Interface Builder and change its class type to ASHDatePicker.

Screenshot

Screenshot

Delegate Methods

- (BOOL)datePickerShouldShowPopover:(ASHDatePicker *)datepicker;

Called each time a date picker becomes the first responder. Return NO if the popover should not be displayed. If not implemented, default is YES.

Properties

@property (assign) NSRectEdge preferredPopoverEdge;

The preferred edge at which to display the popover. Default is NSMaxXEdge.

About

NSDatePicker subclass with attached NSPopover

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published