summaryrefslogtreecommitdiff
path: root/redo/window_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-04 17:28:53 -0400
committerPietro Gagliardi <[email protected]>2014-08-04 17:28:53 -0400
commit6010665415aa8ac80effd5d4caea80ea5628166b (patch)
treee412b46f141605383dcdd360233c64198be4705e /redo/window_darwin.m
parent84297ad7e13d3f10e967358ad10e286e9e193584 (diff)
Converted Window on Mac OS X to use the new container system. Now I can merge container and sizing...
Diffstat (limited to 'redo/window_darwin.m')
-rw-r--r--redo/window_darwin.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/redo/window_darwin.m b/redo/window_darwin.m
index 9a02862..f0930f8 100644
--- a/redo/window_darwin.m
+++ b/redo/window_darwin.m
@@ -5,6 +5,7 @@
#import <Cocoa/Cocoa.h>
#define toNSWindow(x) ((NSWindow *) (x))
+#define toNSView(x) ((NSView *) (x))
@interface goWindowDelegate : NSObject <NSWindowDelegate> {
@public
@@ -19,11 +20,6 @@
return windowClosing(self->gowin);
}
-- (void)windowDidResize:(NSNotification *)n
-{
- [self doWindowResize:[n object]];
-}
-
- (void)doWindowResize:(id)win
{
NSWindow *w;
@@ -69,6 +65,11 @@ void windowSetDelegate(id win, void *w)
[toNSWindow(win) setDelegate:d];
}
+void windowSetContentView(id win, id view)
+{
+ [toNSWindow(win) setContentView:toNSView(view)];
+}
+
const char *windowTitle(id win)
{
return [[toNSWindow(win) title] UTF8String];