|
@@ -63,10 +63,22 @@
|
|
|
- (void)sendEvent:(NSEvent *)event;
|
|
- (void)sendEvent:(NSEvent *)event;
|
|
|
- (void)doCommandBySelector:(SEL)aSelector;
|
|
- (void)doCommandBySelector:(SEL)aSelector;
|
|
|
|
|
|
|
|
|
|
+// ATOMIC BEGIN
|
|
|
|
|
+
|
|
|
|
|
+// disable drag and drop as interferes with Atomic Editor
|
|
|
|
|
+// TODO: a more graceful way of handling this
|
|
|
|
|
+
|
|
|
|
|
+#ifdef ATOMIC_DISABLED
|
|
|
|
|
+
|
|
|
/* Handle drag-and-drop of files onto the SDL window. */
|
|
/* Handle drag-and-drop of files onto the SDL window. */
|
|
|
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender;
|
|
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender;
|
|
|
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
|
|
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
|
|
|
- (BOOL)wantsPeriodicDraggingUpdates;
|
|
- (BOOL)wantsPeriodicDraggingUpdates;
|
|
|
|
|
+
|
|
|
|
|
+// ATOMIC END
|
|
|
|
|
+
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
@end
|
|
@end
|
|
|
|
|
|
|
|
@implementation SDLWindow
|
|
@implementation SDLWindow
|
|
@@ -107,6 +119,13 @@
|
|
|
/*NSLog(@"doCommandBySelector: %@\n", NSStringFromSelector(aSelector));*/
|
|
/*NSLog(@"doCommandBySelector: %@\n", NSStringFromSelector(aSelector));*/
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// ATOMIC BEGIN
|
|
|
|
|
+
|
|
|
|
|
+// disable drag and drop as interferes with Atomic Editor
|
|
|
|
|
+// TODO: a more graceful way of handling this
|
|
|
|
|
+
|
|
|
|
|
+#ifdef ATOMIC_DISABLED
|
|
|
|
|
+
|
|
|
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
|
|
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender
|
|
|
{
|
|
{
|
|
|
if (([sender draggingSourceOperationMask] & NSDragOperationGeneric) == NSDragOperationGeneric) {
|
|
if (([sender draggingSourceOperationMask] & NSDragOperationGeneric) == NSDragOperationGeneric) {
|
|
@@ -173,9 +192,16 @@
|
|
|
return NO;
|
|
return NO;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
|
|
+// ATOMIC END
|
|
|
|
|
+
|
|
|
@end
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
static Uint32 s_moveHack;
|
|
static Uint32 s_moveHack;
|
|
|
|
|
|
|
|
static void ConvertNSRect(NSScreen *screen, BOOL fullscreen, NSRect *r)
|
|
static void ConvertNSRect(NSScreen *screen, BOOL fullscreen, NSRect *r)
|
|
@@ -1271,8 +1297,15 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window)
|
|
|
[nswindow setContentView: contentView];
|
|
[nswindow setContentView: contentView];
|
|
|
[contentView release];
|
|
[contentView release];
|
|
|
|
|
|
|
|
|
|
+// ATOMIC BEGIN
|
|
|
|
|
+
|
|
|
|
|
+ // disable drag and drop as interferes with Atomic Editor
|
|
|
|
|
+ // TODO: a more graceful way of handling this
|
|
|
|
|
+
|
|
|
/* Allow files and folders to be dragged onto the window by users */
|
|
/* Allow files and folders to be dragged onto the window by users */
|
|
|
- [nswindow registerForDraggedTypes:[NSArray arrayWithObject:(NSString *)kUTTypeFileURL]];
|
|
|
|
|
|
|
+ // [nswindow registerForDraggedTypes:[NSArray arrayWithObject:(NSString *)kUTTypeFileURL]];
|
|
|
|
|
+
|
|
|
|
|
+// ATOMIC END
|
|
|
|
|
|
|
|
if (SetupWindowData(_this, window, nswindow, SDL_TRUE) < 0) {
|
|
if (SetupWindowData(_this, window, nswindow, SDL_TRUE) < 0) {
|
|
|
[nswindow release];
|
|
[nswindow release];
|