robotools / vanilla

A Pythonic wrapper around Cocoa.
MIT License
78 stars 28 forks source link

ComboBox selection changed raises an error #212

Closed typemytype closed 1 month ago

typemytype commented 1 month ago

obj.objectValueOfSelectedItem() raises this error:

NSRangeException - *** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array

Strangely the obj from the notification has no objectValues() set, it's an empty array.

https://github.com/robotools/vanilla/blob/master/Lib/vanilla/vanillaComboBox.py#L27

There was a feature request to set the ComboBox continuous when selecting from the pop up menu (see)

typemytype commented 1 month ago

fixed in https://github.com/robotools/vanilla/pull/213