]> git.saurik.com Git - wxWidgets.git/blob - src/cocoa/checklst.mm
Removed redundant fixme comment
[wxWidgets.git] / src / cocoa / checklst.mm
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/checklst.mm
3 // Purpose: wxCheckListBox
4 // Author: David Elliott
5 // Modified by:
6 // Created: 2003/03/18
7 // RCS-ID: $Id:
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/app.h"
13 #include "wx/checklst.h"
14 #include "wx/log.h"
15
16 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
17 BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
18 END_EVENT_TABLE()
19 // WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
20
21 bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
22 const wxPoint& pos,
23 const wxSize& size,
24 int n, const wxString choices[],
25 long style,
26 const wxValidator& validator,
27 const wxString& name)
28 {
29 if(!CreateControl(parent,winid,pos,size,style,validator,name))
30 return false;
31
32 if(m_parent)
33 m_parent->CocoaAddChild(this);
34 return true;
35 }
36
37 wxCheckListBox::~wxCheckListBox()
38 {
39 CocoaRemoveFromParent();
40 }
41
42 bool wxCheckListBox::IsChecked(size_t item) const
43 {
44 return false;
45 }
46
47
48 void wxCheckListBox::Check(size_t item, bool check)
49 {
50 }
51