diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-12 02:06:05 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-12 02:06:05 -0400 |
| commit | 496ad98216196e6386e5ce81585205345803d54f (patch) | |
| tree | caba170da4cf968eabd063a7a741f2f7b0bf9817 /objc_darwin.h | |
| parent | 4813a9892e9faae867a19c5e6c37227050ea3da6 (diff) | |
Replaced the horribly memory-inefficient NSIndexSet operation to get the list of selected indices in the Mac OS X Listbox with a far simpler option that avoids deferring some of the work (apart from objc_msgSend() calls) to cgo and the use of reflect.SliceHeader at all! It just grabs the indices from the NSIndexSet one at a time using the previous index as an anchor.
Diffstat (limited to 'objc_darwin.h')
| -rw-r--r-- | objc_darwin.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/objc_darwin.h b/objc_darwin.h index c7a7157..d86131c 100644 --- a/objc_darwin.h +++ b/objc_darwin.h @@ -49,7 +49,8 @@ struct xpoint { int64_t y; }; -extern uintptr_t objc_msgSend_uintret_noargs(id objc, SEL sel); +extern uintptr_t objc_msgSend_uintret_noargs(id obj, SEL sel); +extern uintptr_t objc_msgSend_uintret_uint(id obj, SEL sel, uintptr_t a); extern intptr_t objc_msgSend_intret_noargs(id obj, SEL sel); |
