WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSButton);
public:
void AssociateNSButton(WX_NSButton cocoaNSButton);
- inline void DisassociateNSButton(WX_NSButton cocoaNSButton)
+ void DisassociateNSButton(WX_NSButton cocoaNSButton)
{
if(cocoaNSButton)
sm_cocoaHash.erase(cocoaNSButton);
}
virtual void Cocoa_wxNSButtonAction(void) = 0;
+ virtual ~wxCocoaNSButton() { }
+
protected:
static const wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaTarget;
};
public:
virtual void CocoaTarget_action() {}
// virtual void Cocoa_didChangeText(void) = 0;
+
+ virtual ~wxCocoaNSControl() { }
+
protected:
static struct objc_object *sm_cocoaTarget;
};
virtual void CocoaNotification_menuDidRemoveItem(WX_NSNotification notification) {}
virtual void CocoaNotification_menuDidSendAction(WX_NSNotification notification) {}
virtual void CocoaNotification_menuWillSendAction(WX_NSNotification notification) {}
+ virtual ~wxCocoaNSMenu() { }
+
protected:
static struct objc_object *sm_cocoaObserver;
};
WX_DECLARE_OBJC_INTERFACE_HASHMAP(NSScroller);
public:
void AssociateNSScroller(WX_NSScroller cocoaNSScroller);
- inline void DisassociateNSScroller(WX_NSScroller cocoaNSScroller)
+ void DisassociateNSScroller(WX_NSScroller cocoaNSScroller)
{
if(cocoaNSScroller)
sm_cocoaHash.erase(cocoaNSScroller);
}
virtual void Cocoa_wxNSScrollerAction(void) = 0;
+ virtual ~wxCocoaNSScroller() { }
+
protected:
static const wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaTarget;
};
void DisassociateNSTabView(WX_NSTabView ocoaNSTabView);
virtual void CocoaDelegate_tabView_didSelectTabViewItem(WX_NSTabViewItem tabviewItem) = 0;
virtual bool CocoaDelegate_tabView_shouldSelectTabViewItem(WX_NSTabViewItem tabviewItem) = 0;
+ virtual ~wxCocoaNSTabView() { }
+
protected:
static wxObjcAutoRefFromAlloc<struct objc_object*> sm_cocoaDelegate;
};
virtual int CocoaDataSource_numberOfRows() = 0;
virtual struct objc_object* CocoaDataSource_objectForTableColumn(
WX_NSTableColumn tableColumn, int rowIndex) = 0;
+ virtual ~wxCocoaNSTableView() { }
};
#endif // _WX_COCOA_NSTABLEVIEW_H_
WX_DECLARE_OBJC_INTERFACE(NSTextField)
protected:
virtual void Cocoa_didChangeText(void) = 0;
+ virtual ~wxCocoaNSTextField() { }
};
#endif // _WX_COCOA_NSTEXTFIELD_H_
{ return false; }
virtual bool Cocoa_resetCursorRects()
{ return false; }
+ virtual ~wxCocoaNSView() { }
};
#endif // _WX_COCOA_NSVIEW_H_
void DisassociateNSComboBox(WX_NSComboBox cocoaNSComboBox);
virtual void doWxEvent(int nEvent) = 0;
+ virtual ~wxCocoaNSComboBox() { }
};
//begin combobox.h