Ticket #21530: patch_textctrl_mm.diff

File patch_textctrl_mm.diff, 1.6 KB (added by Veence (Vincent), 15 years ago)

patch #3 for wxwidgets-devel

  • textctrl.mm

    old new  
    141141
    142142- (void) keyDown:(NSEvent*) event
    143143{
    144     wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( [self delegate] );
     144    wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( (WXWidget) [self delegate] );
    145145    lastKeyDownEvent = event;
    146146    if ( impl == NULL || !impl->DoHandleKeyEvent(event) )
    147147        [super keyDown:event];
     
    150150
    151151- (void) keyUp:(NSEvent*) event
    152152{
    153     wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( [self delegate] );
     153    wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( (WXWidget) [self delegate] );
    154154    if ( impl == NULL || !impl->DoHandleKeyEvent(event) )
    155155        [super keyUp:event];
    156156}
    157157
    158158- (void) flagsChanged:(NSEvent*) event
    159159{
    160     wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( [self delegate] );
     160    wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( (WXWidget) [self delegate] );
    161161    if ( impl == NULL || !impl->DoHandleKeyEvent(event) )
    162162        [super flagsChanged:event];
    163163}
     
    170170
    171171- (void) insertText:(id) str
    172172{
    173     wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( [self delegate] );
     173    wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( (WXWidget) [self delegate] );
    174174    if ( impl == NULL || lastKeyDownEvent==nil || !impl->DoHandleCharEvent(lastKeyDownEvent, str) )
    175175    {
    176176        [super insertText:str];