diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-17 13:27:54 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-17 13:27:54 -0400 |
| commit | 6a06292081a34c4fea0ae5136859ab28dfda5655 (patch) | |
| tree | 6a536db144e6f63ab20dab66a2d5da57ca3969ec | |
| parent | be56293e9c8fbef647048286bd23a0e5b13caac2 (diff) | |
Added the Stack Overflow link for Mac OS X Listbox insertion autoselection and fixed deletion autoselection as well.
| -rw-r--r-- | listbox_darwin.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/listbox_darwin.m b/listbox_darwin.m index 25bd83e..8254b5f 100644 --- a/listbox_darwin.m +++ b/listbox_darwin.m @@ -38,9 +38,9 @@ id makeListboxArray(void) ac = [NSArrayController new]; [ac setAutomaticallyRearrangesObjects:NO]; // we don't want Cocoa to change the selection when items are inserted - // found via TODO_get_Stack_Overflow_link; not sure how I missed it the first time - [ac setSelectsInsertedObjects:NO]; - // TODO figure out how to inhibit this behavior on delete + // found via http://stackoverflow.com/a/5765318/3408572; not sure how I missed it the first time + [ac setSelectsInsertedObjects:NO]; // for insertions + [ac setAvoidsEmptySelection:NO]; // for deletions return ac; } |
