ilawicki
New Member
I'm writing an application which would like to keep its contents to itself (Data Leakage Policy enforcement). On macOS this can be achieved by setting property sharingType to NSWindowSharingNone on NSWindow object. This prevents grabbing window content using screenshot feature, makes window invisible in Skype calls when sharing desktop and works well in other applications. However when OBS grabs "Display Capture" window content is also grabbed. This is different behaviour from OBS on Windows. On Windows there is also some property that enables protection but OBS grabs black rectangle instead of window contents (at least WinRT version on Windows 10). My question is how grabbing display capture is different on macOS and Windows? Are there techniques that would allow me to protect contents of window from being grabbed by applications like OBS on macOS?