return enc ;
}
-#endif // wxUSE_BASE
-
-#if wxUSE_GUI
-
//
// CFStringRefs (Carbon only)
// Common Event Support
// ----------------------------------------------------------------------------
-#endif // wxUSE_GUI
-
-#if wxUSE_BASE
extern ProcessSerialNumber gAppProcess ;
OSStatus wxMacControl::SendEvent( EventRef event , OptionBits inOptions )
{
+#if TARGET_API_MAC_OSX
return SendEventToEventTargetWithOptions( event,
- HIObjectGetEventTarget( (HIObjectRef) m_controlRef ),
- inOptions );
+ HIObjectGetEventTarget( (HIObjectRef) m_controlRef ), inOptions );
+#else
+ #pragma unused(inOptions)
+ return SendEventToEventTarget(event,GetControlEventTarget( m_controlRef ) ) ;
+#endif
}
OSStatus wxMacControl::SendHICommand( HICommand &command , OptionBits inOptions )