If the gpwiki is right Gamemaker is made with Delphi. The MacOS port is done with Lazarus afaik. http://content.gpwiki.org/index.php/Game_Engines