1/////////////////////////////////////////////////////////////////////////////
2// Name:        src/cocoa/checklst.mm
3// Purpose:     wxCheckListBox
4// Author:      David Elliott
5// Modified by:
6// Created:     2003/03/18
7// Copyright:   (c) 2003 David Elliott
8// Licence:     wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#include "wx/wxprec.h"
12
13#if wxUSE_CHECKLISTBOX
14
15#include "wx/checklst.h"
16
17#ifndef WX_PRECOMP
18    #include "wx/log.h"
19    #include "wx/app.h"
20#endif //WX_PRECOMP
21
22BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
23END_EVENT_TABLE()
24// WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
25
26bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
27            const wxPoint& pos,
28            const wxSize& size,
29            const wxArrayString& choices,
30            long style,
31            const wxValidator& validator,
32            const wxString& name)
33{
34    wxCArrayString chs(choices);
35
36    return Create(parent, winid, pos, size, chs.GetCount(), chs.GetStrings(),
37                  style, validator, name);
38}
39
40bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
41            const wxPoint& pos,
42            const wxSize& size,
43            int n, const wxString choices[],
44            long style,
45            const wxValidator& validator,
46            const wxString& name)
47{
48    if(!CreateControl(parent,winid,pos,size,style,validator,name))
49        return false;
50
51    if(m_parent)
52        m_parent->CocoaAddChild(this);
53    return true;
54}
55
56wxCheckListBox::~wxCheckListBox()
57{
58}
59
60bool wxCheckListBox::IsChecked(unsigned int item) const
61{
62    return false;
63}
64
65
66void wxCheckListBox::Check(unsigned int item, bool check)
67{
68}
69
70#endif
71