我可以阻止用户在Mac应用程序中截屏吗? [英] Can I prevent a user from taking screenshots in a Mac application?

查看:644
本文介绍了我可以阻止用户在Mac应用程序中截屏吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图像应用程序,我想将其发布,以便未注册用户可以查看文件,但在注册之前无法保存.

I have an image application and I want to release it where unregistered users can view the files but cant save until they've registered.

我正在寻找一种方法来防止用户使用内置的屏幕截图功能,因此不必对图像加水印.我该怎么办?

I'm looking for a way to prevent the user from using the built in screenshot functionality so I don't have to watermark the images. How might I accomplish this?

-在下面编辑-

我决定给图像加水印.由于图像是立体的,所以我一直在尝试避免加水印,但是我对水印的外观感到非常满意.我将徽标放在角上,并在每张图像上将其偏移足够多,以便它出现在前景中.

I decided to watermark the images. I had been trying to avoid watermarking since the images are stereoscopic but I'm rather happy about how the watermark looks now. I put a logo in the corner and offset it enough on each image so it appears in the foreground.

无论人们在实践中是否同意,我的问题仍然有效.苹果的DVD播放器将视频隐藏在其屏幕截图中,这并不会完全阻止用户拍摄屏幕截图,而是实现了我的初衷.

Whether people agree with it in practice or not, my question is still valid. Apple's DVD Player hides the video in its screenshots, which doesn't altogether stop the user from taking screenshots but accomplishes my original goal.

我仍然非常想知道如何执行此操作. (DVD播放器方式)

I would still very much like to know how to do this. (the DVD player way)

推荐答案

DVD播放器可以做到这一点(用户仍然可以截取屏幕截图,但是播放器窗口中没有出现),所以我确定有办法.也许将窗口的共享类型设置为

DVD Player does this (the user can still take the screenshot, but the player window doesn't appear in it), so I'm sure there's a way. Maybe setting the window's sharing type to NSWindowSharingNone?

这篇关于我可以阻止用户在Mac应用程序中截屏吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆