From a9717bfb4fd6627d51dfc07c35f393f0a93368ff Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 16 May 2014 09:13:11 -0400 Subject: Organized the dummyRect declarations/definitions/etc. in the Objective-C files. I think that's it for the Objective-C conversion of the Mac OS X code! --- sysdata_darwin.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sysdata_darwin.m') diff --git a/sysdata_darwin.m b/sysdata_darwin.m index bb2b1a7..c0d5cab 100644 --- a/sysdata_darwin.m +++ b/sysdata_darwin.m @@ -14,8 +14,7 @@ #include #include -// because the only way to make a new NSControl/NSView is with a frame (it gets overridden later) -static NSRect dummyRect;// = NSMakeRect(0, 0, 100, 100); +extern NSRect dummyRect; #define to(T, x) ((T *) (x)) #define toNSWindow(x) to(NSWindow, (x)) @@ -60,8 +59,6 @@ id makeWindow(id delegate) { NSWindow *w; - // TODO separate to initilaizer - dummyRect = NSMakeRect(0, 0, 100, 100); w = [[NSWindow alloc] initWithContentRect:dummyRect styleMask:(NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask) -- cgit v1.2.3