X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1adc25737bf5c001a2218fd6d8281262a811ace..cad61c3e8f976515852eb65b10587e08e0282445:/src/cocoa/choice.mm diff --git a/src/cocoa/choice.mm b/src/cocoa/choice.mm index ba97699d8e..e5c2431dc8 100644 --- a/src/cocoa/choice.mm +++ b/src/cocoa/choice.mm @@ -10,6 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" + +#if wxUSE_CHOICE + #ifndef WX_PRECOMP #include "wx/log.h" #include "wx/app.h" @@ -183,6 +186,7 @@ int wxChoice::GetSelection() const int wxChoice::DoAppend(const wxString& title) { + wxAutoNSAutoreleasePool pool; NSMenu *nsmenu = [(NSPopUpButton*)m_cocoaNSView menu]; NSMenuItem *item; if(m_sortedStrings) @@ -239,3 +243,4 @@ void wxChoice::SetSelection(int n) [(NSPopUpButton*)m_cocoaNSView selectItemAtIndex:n]; } +#endif