From 605497ce5be07c4a207703095cbd75d676e258ab Mon Sep 17 00:00:00 2001 From: David Elliott Date: Fri, 10 Aug 2007 20:14:07 +0000 Subject: [PATCH] Use SetNSSlider instead of SetNSView so that the WXNSSlider (Objective-C) gets associated with the wxCocoaNSSlider (C++) via the hash map and events actually work. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/slider.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cocoa/slider.mm b/src/cocoa/slider.mm index fe6c0e8597..c94fc98575 100644 --- a/src/cocoa/slider.mm +++ b/src/cocoa/slider.mm @@ -67,7 +67,7 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID winid, if(!CreateControl(parent,winid,pos,size,style,validator,name)) return false; - SetNSView([[WX_GET_OBJC_CLASS(WXNSSlider) alloc] initWithFrame: MakeDefaultNSRect(size)]); + SetNSSlider([[WX_GET_OBJC_CLASS(WXNSSlider) alloc] initWithFrame: MakeDefaultNSRect(size)]); [m_cocoaNSView release]; if(m_parent) -- 2.47.2