diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-13 07:56:37 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-13 07:56:37 -0400 |
| commit | de97125c54da4a2fbbec304205868444775e4fd5 (patch) | |
| tree | 60ca7f9861d42d51b5328cafb247ae230d9da99a /uitask_darwin.go | |
| parent | 791345fa97693016ae3786f3951083edfb752f85 (diff) | |
Started conversion of delegate_darwin.go to use Objective-C directly.
Diffstat (limited to 'uitask_darwin.go')
| -rw-r--r-- | uitask_darwin.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/uitask_darwin.go b/uitask_darwin.go index e72443e..6d044f6 100644 --- a/uitask_darwin.go +++ b/uitask_darwin.go @@ -104,8 +104,7 @@ func initCocoa() (NSApp C.id, err error) { } //export appDelegate_uitask -func appDelegate_uitask(self C.id, sel C.SEL, arg C.id) { - p := C.objc_msgSend_noargs(arg, _pointerValue) +func appDelegate_uitask(p unsafe.Pointer) { f := (*func ())(unsafe.Pointer(p)) (*f)() } |
