Getting OpenGL to show in Mac OS X dock

I have some code for getting this to work in a Cocoa app (which is what
SDL apps on the Mac are) discussed here:

I’m wondering how to get this into SDL correctly so that it will behave
properly by copying SDL’s openGL context correctly so it will show in
the Dock. Is there a generic way to do this for every SDL app that can
be added to SDL? Is there a way to implement this on a project by
project basis?

Any information would be helpful.