On 06 May 2015, at 14:09, Andreas Höschler <ahoe...@smartsoft.de> wrote:
> Hi all,
> 
> I have developed an app with an NSWindow containing a NSScrollView subclass 
> for the document window. When I ry to grab this window with Grab.app for 
> documentation purposes, Grab.app tells me
> 
>       The window could not be captured
>       The contents of this window cannot be shared
> 
> I get this when grabbing this special window of my app only. All others 
> windows in my app and other apps work. Any idea what is blocking Grab.app 
> from taking a picture of my window? This works on MacOSX 10.6 but on Yosemite 
> I get the above error message. This must be some recently invented security 
> mechanism (delegate method of NSWindow or who knows what). 
> 
> I goggled for the above error message but found nothing helpful. Any idea?
> 
> Thanks a lot,

 This is usually controlled by NSWindow's sharingType property. Are you perhaps 
setting this somewhere in your code by accident? I don't see a way to set it 
from a XIB, but maybe the property is written anyway and you have a corrupted 
XIB?

-- Uli
http://stacksmith.org
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to