I'm porting some code over to OS X from Win32 and some other platforms, and it's almost all ported except for functions that create / destroy and OpenGL window - how could I do that in OS X? I started with a foundation app as a sandbox to test my code in but there doesn't seem to be a lot of documentation regarding this specific case. Any help would be appreciated.