if ( wxpeer )
{
wxpeer->HandleActivated(0, false);
- // as for wx the deactivation also means loosing focus we
+ // as for wx the deactivation also means losing focus we
// must trigger this manually
[window makeFirstResponder:nil];
}
return editor;
}
+ else if ([anObject isKindOfClass:[wxNSComboBox class]])
+ {
+ wxNSComboBox * cb = (wxNSComboBox*) anObject;
+ wxNSTextFieldEditor* editor = [cb fieldEditor];
+ if ( editor == nil )
+ {
+ editor = [[wxNSTextFieldEditor alloc] init];
+ [editor setFieldEditor:YES];
+ [cb setFieldEditor:editor];
+ [editor release];
+ }
+ return editor;
+ }
return nil;
}