summaryrefslogtreecommitdiff
path: root/uitask_darwin.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-30 11:19:13 -0400
committerPietro Gagliardi <[email protected]>2014-03-30 11:19:13 -0400
commit08dfb5da2034c33b68d7247dd16925960b3b88a3 (patch)
tree054e95178635037bfdc8d78959a4f2bb957fab9c /uitask_darwin.go
parentf2d6daa9ea2203a897ee3af77105273531622aaf (diff)
Attempted to add the Area bare bones and resizing code to the Mac OS X backend. It complains that initWithFrame: is not implemented...
Diffstat (limited to 'uitask_darwin.go')
-rw-r--r--uitask_darwin.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/uitask_darwin.go b/uitask_darwin.go
index 79d582e..2d13b6e 100644
--- a/uitask_darwin.go
+++ b/uitask_darwin.go
@@ -93,6 +93,10 @@ func initCocoa() (NSApp C.id, err error) {
}
C.objc_msgSend_bool(NSApp, _activateIgnoringOtherApps, C.BOOL(C.YES)) // TODO actually do C.NO here? Russ Cox does YES in his devdraw; the docs say the Finder does NO
err = mkAppDelegate()
+ if err != nil {
+ return
+ }
+ err = mkAreaClass()
return
}