]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/choice.mm
set default resolutions in case of errors
[wxWidgets.git] / src / osx / cocoa / choice.mm
index 2ed9724dd47379ba0f8ca94a81c7f7bb30c7c15f..d08572479abb90da2ffe1b8f1b2f37c4e517fc2d 100644 (file)
@@ -64,6 +64,7 @@ wxWidgetImplType* wxWidgetImpl::CreateChoice( wxWindowMac* wxpeer,
     NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
     wxNSPopUpButton* v = [[wxNSPopUpButton alloc] initWithFrame:r pullsDown:NO];
     [v setMenu: menu->GetHMenu()];
+    [v setAutoenablesItems:NO];
     wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
     return c;
 }