Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?
Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?
- Subject: Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?
- From: Uli Kusterer <email@hidden>
- Date: Mon, 1 Mar 2010 11:41:46 +0100
On 27.02.2010, at 00:53, Joe Jones wrote:
> Why? So we can limit certain functionality over a remote connection. We do this for Terminal Services connections on Windows and I was asked about doing it for Mac.
If you want this so you can limit e.g. whether users can see the contents of certain windows, you may also want to look into the CGWindow APIs/certain methods on NSWindow. I think their name is something like "window sharing". Essentially, they let you tell the OS that certain windows should not be screenshottable. That may work for VNC connections as well, I haven't tried it. But it's worth investigating.
Cheers,
-- Uli Kusterer
"The witnesses of TeachText are everywhere..."
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden