Post

Replies

Boosts

Views

Created

NSOpenPanel returning immediately in MacCatalyst
NSOpenPanel.runModal is returning before the user can select a file. It seemed to get progressively worse as the OS updated. Now with macOS Ventura 13.0 it is completely unusable. Supporting docs https://stackoverflow.com/questions/70050559/nsopenpanel-nssavepanel-runmodal-dismisses-immediately-with-cancel-but-only-on https://stackoverflow.com/questions/28478020/presenting-nsopenpanel-as-sheet-synchronously
7
0
1.8k
Nov ’22
Preventing Screen Capturing
I am looking for a way to block screen recording, screen shots and print screen completely on macOS at a code level. Ideally, using application code to turn it on and off during use of a given feature. I can also entertain application level where capturing is disabled if my application is running. The solution cannot be at an operating system level where capturing disabled for the entire system all the time so a solution like https://derflounder.wordpress.com/2019/09/05/disable-screenshots-and-screen-recordings-on-macos-mojave/ will not fit the use case. I want to re-emphasis this requirement is for macOS and not for iOS. Thus far, I have been using a combination of the CapturedDidChangeNotification and the IsCaptured property to hide screen content. When I tested this using QuickTime screen recording, testing shows this notification is reactive so the first few frames are captured before the notification is received. Secondly, the notification did not trigger for MS Teams or other collaboration apps. This method did not work for preventing screenshots at all as the notification is not received when a screenshot is taken. I can work with any swift or obj-c solution. Is there a different approach I should be considering? Is this achievable in macOS?
2
0
2.8k
Sep ’22