There are writings floating around from Carmack that he was playing around with the OS X prototypes back when it was called Rhapsody in the late 90s.
I also thought I read somewhere that Carmack persuaded Apple to bet big on OpenGL for OS X. (Ironic now that it's deprecated.)