So the conclusion is then to use AGL if I want to integrate with some kind of windows. E.g. making a child window with OpenGL support to an existing parent window ?
Are the window handles the same in Cocoa as in Carbon
Use NSGL if you want to use Cocoa & windows, use AGL if you want to use Carbon & windows.
Cocoa and Carbon windows are not compatible. It is possible to create a Cocoa window object from a Carbon window object (so both refer to the same window on screen); I don’t know if it’s possible to go the other way.