Detect mouse coords relative to desktop on Mac

BlitzMax Forums/BlitzMax Programming/Detect mouse coords relative to desktop on Mac

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

harrah! that was it, thanks.

Uh next prob:

Linking:mousetest
/usr/bin/ld: multiple definitions of symbol _NSGetCursorPos
/Users/jakebirkett/Desktop/FS/Include/.bmx/cocoa_mouse.m.release.macos.x86.o definition of _NSGetCursorPos in section (__TEXT,__text)
/Applications/BlitzMax/mod/brl.mod/cocoamaxgui.mod/cocoamaxgui.release.macos.x86.a(cocoa.macos.m.release.macos.x86.o) definition of _NSGetCursorPos in section (__TEXT,__text)
collect2: ld returned 1 exit status
Build Error: Failed to link /Users/jakebirkett/Desktop/FS/Include/mousetest.app/Contents/MacOS/mousetest


However, I figured this was due to the extern so I took that out and those errors went but I get this:

Compile Error: Unable to convert from 'Int Ptr' to 'TNSGadget'
with the non-GUI code AND the GUI code. What is a TNSGadget? Is it an apple OS thing or maybe a Max GUI thing? Any ideas?