[NTLK] Einstein and Xcode 4, problems with Cocoa graphics calls, HELP NEEDED.
option8-newton at option8.com
Wed Sep 5 23:07:22 EDT 2012
Matthias - I hope you're also putting out the call on some dedicated Xcode forums.
On Sep 5, 2012, at 7:29 PM, Matthias Melcher wrote:
> Getting closer: drawing the Screen contents in OSX is done via "CGContextDrawImage". This call used to re-read the image from the raw RGB data every time. Starting with Mountain Lion, it seems that CGContextDrawImage is now "smart" and caches the image instead, accelerating the drawing code, but ruining our strategy to drawthe Newton screen. There is a fix that deletes and recreates the entire structure on every screen refresh, but I sure hope that this is not the only solution for the issue.
> Is there please someone who can take a look at this? My Cocoa knowledge only goes so far.
> See TCocoaScreenView::drawRect and TCocoaScreenManager::TCocoaScreenManager
> - Matthias
More information about the NewtonTalk