Update of bug #34467 (project gnustep):

                Category:                    None => Gui/AppKit             
              Item Group:                    None => Bug                    
                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

Thanks for reporting.

As a workaround, you can get it to work by adding the view you snapshot to the
window content view before taking the snapshot, and ordering-front the window
before taking the snapshot.

-[NSView bitmapImageRepForCachingDisplayInRect:] and -[NSView
cacheDisplayInRect:toBitmapImageRep:] probably shouldn't rely on being able to
lock focus on the view (self), but rather should use [NSGraphicsContext
graphicsContextWithBitmapImageRep:] to create a context which can draw
directly on the bitmap, and then just call the view's display method. The only
problem is, [NSGraphicsContext graphicsContextWithBitmapImageRep:] isn't
implemented currently.

Another potential bug this revealed is it seems you can't lock focus on a view
before its window has been ordered front... that sounds wrong to me.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34467>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to