diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-01 17:15:26 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-01 17:15:26 -0500 |
| commit | 5caf0fe84a81e5adbe18568eabe06f2ec674c1b3 (patch) | |
| tree | 63dc442f3a40aaf1118b6a4885b8e778265d8fa2 /delegate_darwin.go | |
| parent | 8b497b2188bc735710a6ef83b0b05487a4b3ee83 (diff) | |
Cleaned up loose ends with the previous commit and got window close events working on Mac OS X. Woo!
Diffstat (limited to 'delegate_darwin.go')
| -rw-r--r-- | delegate_darwin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/delegate_darwin.go b/delegate_darwin.go index dce4e4d..f6870e6 100644 --- a/delegate_darwin.go +++ b/delegate_darwin.go @@ -10,7 +10,7 @@ import ( This creates a class goAppDelegate that will be used as the delegate for /everything/. Specifically, it: - runs uitask requests (uitask:) - handles window close events (windowShouldClose:) - - handles window resize events (xxxx:) + - handles window resize events (windowDidResize: (TODO also windowDidEndLiveResize:?)) - handles button click events (buttonClick:) */ @@ -82,7 +82,7 @@ func makeDelegateClass(name string) (C.Class, error) { var ( delegate_void = []C.char{'v', '@', ':', '@', 0} // void (*)(id, SEL, id) - delegate_bool = []C.char{'#', '@', ':', '@', 0} // BOOL (*)(id, SEL, id) + delegate_bool = []C.char{'c', '@', ':', '@', 0} // BOOL (*)(id, SEL, id) ) // according to errors spit out by cgo, C function pointers are unsafe.Pointer |
