diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-16 09:13:11 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-16 09:13:11 -0400 |
| commit | a9717bfb4fd6627d51dfc07c35f393f0a93368ff (patch) | |
| tree | e9b2eaa2c979f45a829187343676fc5efae02eff /sysdata_darwin.m | |
| parent | acc4a543566550ed563887a5827735596a5d816c (diff) | |
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!
Diffstat (limited to 'sysdata_darwin.m')
| -rw-r--r-- | sysdata_darwin.m | 5 |
1 files changed, 1 insertions, 4 deletions
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 <AppKit/NSProgressIndicator.h> #include <AppKit/NSScrollView.h> -// 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) |
