How to create a QuickTime recording like panel?

QuickTime recording palette behaves in a way which I want to replicate in my desktop app - specifically the behaviour when switching spaces, it appears on top. Currently, my app appears on all spaces, and even over fullscreen applications BUT it already exists when I switch to the space, this feels disjointed.

I can't find a solution to this behaviour. Here's the Window Collection Behaviours I've tried (on an NSPanel):

  • FullScreenAuxiliary - appears over fullscreen apps.
  • CanJoinAllSpaces - appears on all spaces.

These two options make the dock show up on all spaces in the same position, but on each space they already exists.

I've tried this behaviour too:

  • MoveToActiveSpace - which as per docs would move the window into active space only when its reopened, mine stays open all the time.

I can't find any more information on how QuickTime achieves this.

How to create a QuickTime recording like panel?
 
 
Q