projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made all of the GNOME print support based
[wxWidgets.git]
/
src
/
cocoa
/
listbox.mm
diff --git
a/src/cocoa/listbox.mm
b/src/cocoa/listbox.mm
index a379cdd02ea217fc88e5927f488df7a51a7e798f..2da7df8afea596b37180ac13c83044de3d995753 100644
(file)
--- a/
src/cocoa/listbox.mm
+++ b/
src/cocoa/listbox.mm
@@
-6,7
+6,7
@@
// Created: 2003/03/18
// RCS-ID: $Id:
// Copyright: (c) 2003 David Elliott
// Created: 2003/03/18
// RCS-ID: $Id:
// Copyright: (c) 2003 David Elliott
-// Licence: wxWi
ndows licens
e
+// Licence: wxWi
dgets licenc
e
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
@@
-63,9
+63,9
@@
bool wxListBox::Create(wxWindow *parent, wxWindowID winid,
[m_cocoaItems addObject: wxNSStringWithWxString(choices[i])];
}
// Remove everything
[m_cocoaItems addObject: wxNSStringWithWxString(choices[i])];
}
// Remove everything
- m_
c
lientData.Clear();
+ m_
itemC
lientData.Clear();
// Initialize n elements to NULL
// Initialize n elements to NULL
- m_
c
lientData.SetCount(n,NULL);
+ m_
itemC
lientData.SetCount(n,NULL);
SetNSTableView([[NSTableView alloc] initWithFrame: MakeDefaultNSRect(size)]);
[m_cocoaNSView release];
SetNSTableView([[NSTableView alloc] initWithFrame: MakeDefaultNSRect(size)]);
[m_cocoaNSView release];
@@
-142,7
+142,7
@@
void wxListBox::DoInsertItems(const wxArrayString& items, int pos)
{
[m_cocoaItems insertObject: wxNSStringWithWxString(items[i])
atIndex: pos];
{
[m_cocoaItems insertObject: wxNSStringWithWxString(items[i])
atIndex: pos];
- m_
c
lientData.Insert(NULL,pos);
+ m_
itemC
lientData.Insert(NULL,pos);
}
[GetNSTableView() reloadData];
}
}
[GetNSTableView() reloadData];
}
@@
-151,12
+151,12
@@
void wxListBox::DoSetItems(const wxArrayString& items, void **clientData)
{
// Remove everything
[m_cocoaItems removeAllObjects];
{
// Remove everything
[m_cocoaItems removeAllObjects];
- m_
c
lientData.Clear();
+ m_
itemC
lientData.Clear();
// Provide the data
for(size_t i=0; i < items.GetCount(); i++)
{
[m_cocoaItems addObject: wxNSStringWithWxString(items[i])];
// Provide the data
for(size_t i=0; i < items.GetCount(); i++)
{
[m_cocoaItems addObject: wxNSStringWithWxString(items[i])];
- m_
c
lientData.Add(clientData[i]);
+ m_
itemC
lientData.Add(clientData[i]);
}
[GetNSTableView() reloadData];
}
}
[GetNSTableView() reloadData];
}