bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #34467] -[NSView bitmapImageRepForCachingDisplayInRect:] broken


From: Eric Wasylishen
Subject: [bug #34467] -[NSView bitmapImageRepForCachingDisplayInRect:] broken
Date: Mon, 03 Oct 2011 19:43:20 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]