• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Grabbing window - The contents of this window cannot be shared
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grabbing window - The contents of this window cannot be shared


  • Subject: Re: Grabbing window - The contents of this window cannot be shared
  • From: Uli Kusterer <email@hidden>
  • Date: Wed, 06 May 2015 15:24:10 +0200

On 06 May 2015, at 14:09, Andreas Höschler <email@hidden> 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 (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


References: 
 >Help: NSScrollView is resizing its documentView down to (0, 0) (From: Jens Alfke <email@hidden>)
 >Re: Help: NSScrollView is resizing its documentView down to (0, 0) (From: Graham Cox <email@hidden>)
 >Re: Help: NSScrollView is resizing its documentView down to (0, 0) (From: Jens Alfke <email@hidden>)
 >Grabbing window - The contents of this window cannot be shared (From: Andreas Höschler <email@hidden>)

  • Prev by Date: Grabbing window - The contents of this window cannot be shared
  • Next by Date: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Previous by thread: Grabbing window - The contents of this window cannot be shared
  • Next by thread: Re: Help: NSScrollView is resizing its documentView down to (0, 0)
  • Index(es):
    • Date
    • Thread