From 4045d50f946431408896a7b1512397c905e4bdb5 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 29 May 2014 04:41:07 -0400 Subject: Checked to see if the previous commit worked after removing the leftover Combobox selectIndex() code; it does. Removed the dummy code from the Windows and GTK+ backends as well. --- combobox_darwin.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'combobox_darwin.m') diff --git a/combobox_darwin.m b/combobox_darwin.m index 5c88b07..b84b948 100644 --- a/combobox_darwin.m +++ b/combobox_darwin.m @@ -54,7 +54,7 @@ id makeCombobox(BOOL editable) #define BIND bind:comboboxBinding toObject:ac withKeyPath:comboboxKeyPath options:nil // for NSPopUpButton, we need a little extra work to make it respect the NSArrayController's selection behavior properties // thanks to stevesliva (http://stackoverflow.com/questions/23715275/cocoa-how-do-i-suppress-nspopupbutton-automatic-selection-synchronization-nsar) -// TODO where in the docs does it say that NSArrayController has a keyPath of selectionIndex? it's not in the Cocoa Bindings Reference +// note: selectionIndex isn't listed in the Cocoa Bindings Reference for NSArrayController under exposed bindings, but is in the Cocoa Bindings Programming Topics under key-value observant properties, so we can still bind to it #define BINDSEL bind:@"selectedIndex" toObject:ac withKeyPath:@"selectionIndex" options:nil if (!editable) { -- cgit v1.2.3