Open corruptmemory opened 1 year ago
It is possible that generation would make a SetDelegate for ComboBox and skips it because it already exists in TextField, so that would be a generation bug. And your workaround is fine, but there is also always a generic Object version of any method that takes a Protocol interface, in this case SetDelegateObject.
Example:
Will fail at run time because the particular
SetDelegate
method invoked is this one:And since we are giving it a
ComboBoxDelegate
instead of aTextFieldDelegate
, the reflective type check fails.I've built a work-around for this:
But needless to say, the current behavior isn't what a user would expect.