From 496ad98216196e6386e5ce81585205345803d54f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 12 May 2014 02:06:05 -0400 Subject: 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. --- objc_darwin.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'objc_darwin.h') 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); -- cgit v1.2.3