Get height of desktop on Mac

BlitzMax Forums/BlitzMax Programming/Get height of 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.

Does this work? its some old code for a module tweak i did...
void GetDesktopSize( width* int, height* int) {
	NSRect rect;
	rect = [[NSScreen deepestScreen] frame];
	*width = rect.size.width;
	*height = rect.size.height;
}
Extern 
	Function GetDesktopSize( width:Int Var, height:Int Var)
EndExtern