GetActiveWindow and GetForegroundWindow on MAC

BlitzMax Forums/BlitzMax Programming/GetActiveWindow and GetForegroundWindow on MAC

OK it nearly works. For a start I changed the return line to:

return NSWindow;


as NWWindow was a typo. But anyway it won't compile, I get "parse error before 'NSWindow'". I'm basically saving the above code into a file with extension .m and then importing it into my BMX. Any ideas? Is the return value the wrong type?