mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 10:49:02 +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)
|
#if defined(HAVE_COCOA)
|
||||||
[self setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
[self setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable];
|
||||||
ui_window_cocoa_t view;
|
ui_window_cocoa_t cocoa_view;
|
||||||
view.data = (CocoaView*)self;
|
cocoa_view.data = (CocoaView*)self;
|
||||||
ui_window_cocoa_set_droppable(&view, true);
|
|
||||||
|
[self registerForDraggedTypes:[NSArray arrayWithObjects:NSColorPboardType, NSFilenamesPboardType, nil]];
|
||||||
#elif defined(HAVE_COCOATOUCH)
|
#elif defined(HAVE_COCOATOUCH)
|
||||||
self.view = (__bridge GLKView*)glkitview_init();
|
self.view = (__bridge GLKView*)glkitview_init();
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ void ui_window_cocoa_set_droppable(void *data, bool droppable)
|
|||||||
|
|
||||||
if (droppable)
|
if (droppable)
|
||||||
{
|
{
|
||||||
[[cocoa_view window] registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];
|
[[cocoa_view window] registerForDraggedTypes:[NSArray arrayWithObjects:NSColorPboardType, NSFilenamesPboardType, nil]];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user