X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98978a10b79e95dca76ac6da8192a88023a7a36f..c37dd6dad7f53b8f5f4c4a8d6434c2851cd2b9e4:/src/osx/cocoa/srchctrl.mm diff --git a/src/osx/cocoa/srchctrl.mm b/src/osx/cocoa/srchctrl.mm index 0ed85e50f3..6b761d7f97 100644 --- a/src/osx/cocoa/srchctrl.mm +++ b/src/osx/cocoa/srchctrl.mm @@ -57,6 +57,7 @@ - (void) searchAction: (id) sender { + (void) sender; wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self ); if ( impl ) { @@ -151,13 +152,13 @@ wxNSSearchFieldControl::~wxNSSearchFieldControl() } wxWidgetImplType* wxWidgetImpl::CreateSearchControl( wxTextCtrl* wxpeer, - wxWindowMac* parent, - wxWindowID id, + wxWindowMac* WXUNUSED(parent), + wxWindowID WXUNUSED(id), const wxString& str, const wxPoint& pos, const wxSize& size, - long style, - long extraStyle) + long WXUNUSED(style), + long WXUNUSED(extraStyle)) { NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; wxNSSearchField* v = [[wxNSSearchField alloc] initWithFrame:r]; @@ -165,10 +166,8 @@ wxWidgetImplType* wxWidgetImpl::CreateSearchControl( wxTextCtrl* wxpeer, // per wx default cancel is not shown [[v cell] setCancelButtonCell:nil]; - [v setBezeled:NO]; - [v setBordered:NO]; - wxNSSearchFieldControl* c = new wxNSSearchFieldControl( wxpeer, v ); + c->SetNeedsFrame( false ); c->SetStringValue( str ); return c; }