diff options
Diffstat (limited to 'new/button_darwin.m')
| -rw-r--r-- | new/button_darwin.m | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/new/button_darwin.m b/new/button_darwin.m index 87c4525..d4b2a2b 100644 --- a/new/button_darwin.m +++ b/new/button_darwin.m @@ -1,6 +1,19 @@ // 7 april 2015 #import "uipriv_darwin.h" +#ifdef uiLogAllocations +@interface loggingNSButton : NSButton +@end + +@implementation loggingNSButton + +uiLogObjCClassAllocations + +@end +#else +#define loggingNSButton NSButton +#endif + @interface button : NSObject @property uiControl *c; @property void (*onClicked)(uiControl *, void *); @@ -30,7 +43,7 @@ uiControl *uiNewButton(const char *text) NSButton *bb; b = [button new]; - b.c = uiDarwinNewControl([NSButton class], NO, NO, b); + b.c = uiDarwinNewControl([loggingNSButton class], NO, NO, b); bb = (NSButton *) uiControlHandle(b.c); [bb setTitle:toNSString(text)]; |
