From 521829a0a66f62e9ed4256440a1ed34565e4d51f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 8 Apr 2015 00:26:49 -0400 Subject: Added allocation logging to Objective-C objects. Fixed some Mac OS X build issues. --- new/window_darwin.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'new/window_darwin.m') diff --git a/new/window_darwin.m b/new/window_darwin.m index 8beb008..795c2e0 100644 --- a/new/window_darwin.m +++ b/new/window_darwin.m @@ -12,6 +12,8 @@ @implementation uiWindowDelegate +uiLogObjCClassAllocations + // TODO will this *destroy* the window? - (BOOL)windowShouldClose:(id)win { @@ -39,7 +41,7 @@ uiWindow *uiNewWindow(char *title, int width, int height) { uiWindow *w; - w = (uiWindow *) uiAlloc(sizeof (uiWindow)); + w = uiNew(uiWindow); w->w = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, (CGFloat) width, (CGFloat) height) styleMask:(NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask) -- cgit v1.2.3