}
}
+- (void)controlTextDidEndEditing:(NSNotification *)aNotification
+{
+ wxUnusedVar(aNotification);
+ wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
+ if ( impl )
+ {
+ impl->DoNotifyFocusEvent( false, NULL );
+ }
+}
+
@end
@interface wxNSTextView : NSScrollView
return NO;
}
-/*
+
- (void)controlTextDidEndEditing:(NSNotification *)aNotification
{
+ wxUnusedVar(aNotification);
+ wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
if ( impl )
{
- wxWindow* wxpeer = (wxWindow*) impl->GetWXPeer();
- if ( wxpeer ) {
- wxFocusEvent event(wxEVT_KILL_FOCUS, wxpeer->GetId());
- event.SetEventObject( wxpeer );
- event.SetWindow( wxpeer );
- wxpeer->HandleWindowEvent( event );
- }
+ impl->DoNotifyFocusEvent( false, NULL );
}
}
-*/
@end
// wxNSTextViewControl