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:
http://www.idevgames.com/forum/showthread.php?p=70473&posted=1#post70473

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.

Thanks,
Aaron