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 3 months ago

typemytype commented 3 months 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 3 months ago

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