X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dbeddfb93d3479d03d8ec4c0121dfbe3bbcc422b..cf516c2bb2b8bc462f6f0cb852fb2fc2d86c9c66:/src/osx/cocoa/slider.mm?ds=sidebyside diff --git a/src/osx/cocoa/slider.mm b/src/osx/cocoa/slider.mm index a80fb434d6..227435b77d 100644 --- a/src/osx/cocoa/slider.mm +++ b/src/osx/cocoa/slider.mm @@ -18,11 +18,11 @@ @interface wxNSSlider : NSSlider { - wxWidgetImpl* impl; + wxWidgetCocoaImpl* impl; } -- (void)setImplementation: (wxWidgetImpl *) theImplementation; -- (wxWidgetImpl*) implementation; +- (void)setImplementation: (wxWidgetCocoaImpl *) theImplementation; +- (wxWidgetCocoaImpl*) implementation; - (BOOL) isFlipped; - (void) clickedAction: (id) sender; @@ -49,12 +49,12 @@ } } -- (void)setImplementation: (wxWidgetImpl *) theImplementation +- (void)setImplementation: (wxWidgetCocoaImpl *) theImplementation { impl = theImplementation; } -- (wxWidgetImpl*) implementation +- (wxWidgetCocoaImpl*) implementation { return impl; } @@ -77,8 +77,6 @@ wxWidgetImplType* wxWidgetImpl::CreateSlider( wxWindowMac* wxpeer, long style, long extraStyle) { - NSView* sv = (wxpeer->GetParent()->GetHandle() ); - NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ; wxNSSlider* v = [[wxNSSlider alloc] initWithFrame:r]; @@ -99,7 +97,6 @@ wxWidgetImplType* wxWidgetImpl::CreateSlider( wxWindowMac* wxpeer, [v setMinValue: minimum]; [v setMaxValue: maximum]; [v setFloatValue: (double) value]; - [sv addSubview:v]; wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v ); [v setImplementation:c]; return c;