diff options
Diffstat (limited to 'delegate_darwin.m')
| -rw-r--r-- | delegate_darwin.m | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/delegate_darwin.m b/delegate_darwin.m deleted file mode 100644 index 638bfa3..0000000 --- a/delegate_darwin.m +++ /dev/null @@ -1,53 +0,0 @@ -// 13 may 2014 - -#include "objc_darwin.h" -#include "_cgo_export.h" -#include <Foundation/NSObject.h> -#include <Foundation/NSValue.h> -#include <Foundation/NSNotification.h> -#include <AppKit/NSApplication.h> -#include <AppKit/NSWindow.h> - -@interface appDelegate : NSObject -@end - -@implementation appDelegate - -- (void)uitask:(NSValue *)fp -{ - appDelegate_uitask([fp pointerValue]); -} - -- (BOOL)windowShouldClose:(id)win -{ - appDelegate_windowShouldClose(win); - return NO; // don't close -} - -- (void)windowDidResize:(NSNotification *)n -{ - appDelegate_windowDidResize([n object]); -} - -- (void)buttonClicked:(id)button -{ - appDelegate_buttonClicked(button); -} - -- (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)app -{ - appDelegate_applicationShouldTerminate(); - return NSTerminateCancel; -} - -@end - -id makeAppDelegate(void) -{ - return [appDelegate new]; -} - -id windowGetContentView(id window) -{ - return [((NSWindow *) window) contentView]; -} |
