Ticket #37624: window.mm.diff

File window.mm.diff, 649 bytes (added by alex@…, 12 years ago)
  • src/osx/cocoa/window.mm

    old new  
    21062106    {
    21072107        CFMutableArrayRef typesarray = CFArrayCreateMutable(kCFAllocatorDefault,0,&kCFTypeArrayCallBacks);
    21082108       
    2109         [m_osxView registerForDraggedTypes:(NSArray*)typesarray];
     2109        dobj->AddSupportedTypes(typesarray);
     2110        NSView* targetView = m_osxView;
     2111        if ( [m_osxView isKindOfClass:[NSScrollView class] ] )
     2112                targetView = [(NSScrollView*) m_osxView documentView];
     2113       
     2114        [targetView registerForDraggedTypes:(NSArray*)typesarray];
    21102115        CFRelease(typesarray);
    21112116    }
    21122117}