Use today as default date in wxDatePickerCtrl under OS X too.

This makes the behaviour consistent with the documentation and other ports.

Closes #29.
This commit is contained in:
Johannes Maibaum
2015-05-25 14:40:38 +02:00
committed by Vadim Zeitlin
parent 94f8d80b6a
commit 2e5df8746a

View File

@@ -174,6 +174,10 @@ wxDateTimeWidgetImpl::CreateDateTimePicker(wxDateTimePickerCtrl* wxpeer,
{
[v setDateValue: NSDateFromWX(dt)];
}
else
{
[v setDateValue: [NSDate date]];
}
wxDateTimeWidgetImpl* c = new wxDateTimeWidgetCocoaImpl(wxpeer, v);
#if !wxOSX_USE_NATIVE_FLIPPED