Ticket #37624: window.mm.diff
File window.mm.diff, 649 bytes (added by alex@…, 12 years ago) |
---|
-
src/osx/cocoa/window.mm
old new 2106 2106 { 2107 2107 CFMutableArrayRef typesarray = CFArrayCreateMutable(kCFAllocatorDefault,0,&kCFTypeArrayCallBacks); 2108 2108 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]; 2110 2115 CFRelease(typesarray); 2111 2116 } 2112 2117 }