SonOfGrab displays in the composited image window the correct image after following the same steps.
Kevin On 18 Jun 2014, at 17:01, Kevin Meaney <[email protected]> wrote: > On Jun 18, 2014, at 8:36 AM, Kevin Meaney <[email protected]> wrote: >>> >>> The sequence of events are: >>> >>> 1. Drag window so that it is partially offscreen. >>> 2. Draw into the window where part of the drawing happens in the part of >>> the window that is offscreen. >> >> Ok, what does this mean? In AppKit, you don’t draw into a window; the window >> asks you to draw. If you mean that you’re sending -drawRect: to the view >> yourself, that will never work. > > Drawing happens when I receive an xpc message containing a drawing command. > To do the drawing I get the NSGraphicsContext from which I pull the > graphicsPort which is a special kind of CGContext. I then use CoreGraphics > commands to do the drawing. > > I looked at SonOfGrab when I first implemented this, so I'm looking at it > again to see if it can provide some clues. > > Kevin > >> It’s also possible that CGWindowList doesn’t force a window to draw its >> entire area. Do you get the same results with the SonOfGrab sample project? >> <https://developer.apple.com/library/mac/samplecode/SonOfGrab/Listings/Controller_m.html#//apple_ref/doc/uid/DTS10004490-Controller_m-DontLinkElementID_4> >> >> --Kyle Sluder > > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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/ktam%40yvs.eu.com > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
