# What's the equivalent of wglShareLists for Mac OS?

I'm trying to share lists between two contexts on Mac OS but despite my research I couldn't come up with an answer so far. I've found that NSOpenGLContext was able to initialize a context with a shared context but not to set it afterward.

What's the equivalent of wglShareLists on Mac OS?

Essentially, you can either create an NSOpenGLContext (and in doing so, specify the original context you want to share using initWithFormat:shareContext: or use CGGLCreateContext's share parameter. I don't believe it is possible to share resources after initialization.
There isn't a way to construct an NSOpenGLView (which you are probably using) with a shared context. Instead you'll probably have to swap the existing context out, or use that context as the main one from which you create the shared context.