]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/checklst.mm
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / src / cocoa / checklst.mm
CommitLineData
da0634c1 1/////////////////////////////////////////////////////////////////////////////
aa61d352 2// Name: src/cocoa/checklst.mm
da0634c1
DE
3// Purpose: wxCheckListBox
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/18
da0634c1 7// Copyright: (c) 2003 David Elliott
526954c5 8// Licence: wxWindows licence
da0634c1
DE
9/////////////////////////////////////////////////////////////////////////////
10
449c5673 11#include "wx/wxprec.h"
16c81607
RN
12
13#if wxUSE_CHECKLISTBOX
14
e6e83933
WS
15#include "wx/checklst.h"
16
449c5673
DE
17#ifndef WX_PRECOMP
18 #include "wx/log.h"
19 #include "wx/app.h"
449c5673 20#endif //WX_PRECOMP
da0634c1 21
da0634c1
DE
22BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
23END_EVENT_TABLE()
24// WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
25
584ad2a3
MB
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
da0634c1
DE
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{
da0634c1
DE
58}
59
aa61d352 60bool wxCheckListBox::IsChecked(unsigned int item) const
da0634c1
DE
61{
62 return false;
63}
64
65
aa61d352 66void wxCheckListBox::Check(unsigned int item, bool check)
da0634c1
DE
67{
68}
69
2e5cb6c2 70#endif