projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
otherwise all runloop dependent callbacks cannot work outside of the main thread
[wxWidgets.git]
/
src
/
cocoa
/
button.mm
diff --git
a/src/cocoa/button.mm
b/src/cocoa/button.mm
index f9d006b3a72232f41f5bf565a172441736645c99..6e7603190b036c6043c1cbd10e76e0cc02333045 100644
(file)
--- a/
src/cocoa/button.mm
+++ b/
src/cocoa/button.mm
@@
-32,10
+32,10
@@
bool wxButton::Create(wxWindow *parent, wxWindowID winid,
const wxValidator& validator, const wxString& name)
{
wxAutoNSAutoreleasePool pool;
const wxValidator& validator, const wxString& name)
{
wxAutoNSAutoreleasePool pool;
- wxLog
Debug(
wxT("Creating control with id=%d"),winid);
+ wxLog
Trace(wxTRACE_COCOA,
wxT("Creating control with id=%d"),winid);
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
- wxLog
Debug(
wxT("Created control with id=%d"),GetId());
+ wxLog
Trace(wxTRACE_COCOA,
wxT("Created control with id=%d"),GetId());
m_cocoaNSView = NULL;
SetNSButton([[NSButton alloc] initWithFrame: MakeDefaultNSRect(size)]);
// NOTE: YES we want to release this (to match the alloc).
m_cocoaNSView = NULL;
SetNSButton([[NSButton alloc] initWithFrame: MakeDefaultNSRect(size)]);
// NOTE: YES we want to release this (to match the alloc).
@@
-60,7
+60,7
@@
wxButton::~wxButton()
void wxButton::Cocoa_wxNSButtonAction(void)
{
void wxButton::Cocoa_wxNSButtonAction(void)
{
- wxLog
Debug(
wxT("YAY!"));
+ wxLog
Trace(wxTRACE_COCOA,
wxT("YAY!"));
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
InitCommandEvent(event); // event.SetEventObject(this);
Command(event);
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, GetId());
InitCommandEvent(event); // event.SetEventObject(this);
Command(event);