mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 02:38:11 +00:00
Don't use ui_cocoa_window_set_droppable for now
This commit is contained in:
parent
47c7330cc8
commit
bb5107b5fa
@ -64,9 +64,10 @@ void *glkitview_init(void);
|
||||
|
||||
#if defined(HAVE_COCOA)
|
||||
[self setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
||||
ui_window_cocoa_t view;
|
||||
view.data = (CocoaView*)self;
|
||||
ui_window_cocoa_set_droppable(&view, true);
|
||||
ui_window_cocoa_t cocoa_view;
|
||||
cocoa_view.data = (CocoaView*)self;
|
||||
|
||||
[self registerForDraggedTypes:[NSArray arrayWithObjects:NSColorPboardType, NSFilenamesPboardType, nil]];
|
||||
#elif defined(HAVE_COCOATOUCH)
|
||||
self.view = (__bridge GLKView*)glkitview_init();
|
||||
|
||||
|
@ -62,7 +62,7 @@ void ui_window_cocoa_set_droppable(void *data, bool droppable)
|
||||
|
||||
if (droppable)
|
||||
{
|
||||
[[cocoa_view window] registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];
|
||||
[[cocoa_view window] registerForDraggedTypes:[NSArray arrayWithObjects:NSColorPboardType, NSFilenamesPboardType, nil]];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user