I don't have experience with those plugin frameworks. Here's a few ideas:
- Is pGraphics->GetWindow() an instance of REAPERSwell_hwnd (alias for SWELL_hwndChild, a subclass of NSView)? This can be checked in Objective-C:
Code:
NSLog(@"%@", NSStringFromClass([(__bridge NSView*)pGraphics->GetWindow() class]));
- If yes, your plugin's SetWindowLong is probably failing to detect it's class because you're building a different copy of SWELL in your plugin rather than using REAPER's (modstub.mm). Using REAPER's SetWindowLong should fix that.
- If not, adding a subcontrol might be an option.
- If not, then bypassing SWELL and directly using the macOS API (Objective-C or Swift) is always an option.
https://developer.apple.com/library/...tingdrags.html
Code:
- (NSDragOperation)draggingEntered:(id<NSDraggingInfo>)sender;
- (void)draggingExited:(id<NSDraggingInfo>)sender;
- (BOOL)performDragOperation:(id<NSDraggingInfo>)sender;