diff options
| author | Pietro Gagliardi <[email protected]> | 2014-07-15 14:04:20 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-07-15 14:04:20 -0400 |
| commit | 474436e9f6e84f26edd08bfcff16d62a3cd40175 (patch) | |
| tree | 32ccc7d216db527b0c058f194623e62e06dfe55e /redo/window_darwin.m | |
| parent | c61666b6b4528e7a691fc3c20f2cf681d188bec7 (diff) | |
Implemented window resize handling on Mac OS X. Now for actually setting child controls and resizing them.
Diffstat (limited to 'redo/window_darwin.m')
| -rw-r--r-- | redo/window_darwin.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/redo/window_darwin.m b/redo/window_darwin.m index d0b1347..426f353 100644 --- a/redo/window_darwin.m +++ b/redo/window_darwin.m @@ -20,6 +20,16 @@ return windowClosing(self->gowin); } +- (void)windowDidResize:(NSNotification *)n +{ + NSWindow *w; + NSRect r; + + w = toNSWindow([n object]); + r = [[w contentView] frame]; + windowResized(self->gowin, (uintptr_t) r.size.width, (uintptr_t) r.size.height); +} + @end id newWindow(intptr_t width, intptr_t height) |
