Hi,I am not sure whether this is relevant for your problem, but it might be useful to know that the content view of a scroll view gets a CATiledLayer instead of a normal CALayer via [setWantsLayer:YES].
The reasoning is that the content view can be potentially large and easily exceed the max size of OpenGL textures. Besides being tiled, CATiledLayer updates its contents lazily and in some background thread, if I remember correctly. In any case, it is different.
Best Kai On 19.6.2008, at 19:54, Moray Taylor wrote:
Thanks for the reply... I've tried [[[self pageScrollView] contentView] setWantsLayer:YES];This results in a still flipped display, and very badly corrupted, lots of artifacts etc....[[self pageScrollView] setWantsLayer:YES]; Nice display, but still flipped.The transform that used to work before I tried the above line makes no difference if I set the scrollview to be layer backed.Any ideas? --- On Thu, 19/6/08, Scott Anguish <[EMAIL PROTECTED]> wrote:From: Scott Anguish <[EMAIL PROTECTED]> Subject: Re: Problems with a Layer backed NSView in a NSScrollView To: [EMAIL PROTECTED] Date: Thursday, 19 June, 2008, 5:50 PM have you tried just setting the contentview of the scroll view to layer backed? otherwise you can remvoe the extra transofrm you added to the view itself. On Jun 19, 2008, at 11:38 AM, Moray Taylor wrote:Hi there! I've been tearing my hair out trying to figurethis out, sohopefully someone will take pity! Basicaly, I've a CALayer-backed custom view, whichworks prettygreat, I use a transform to flip it, and it worksfine, the problemhappens when I put it in a NSScrollView.... If I put it in the scrollview, and set thescrollview'ssetWantsLayer to YES, then it works good, very fastand smoothscrolling, BUT, it's completely upside down! If I setWantsLayer to NO, then it's the right wayup, but jerky andgenerally doesn't work (i.e. the scroll bardoesn't do anything inthe scrollview) I've tried flipping and unflipping the view,applying a transform tothe CALayer (I had a transform to begin with, removedit, nodifference), nothing I do will flip it back! Please help! Thanks Moray__________________________________________________________Sent from Yahoo! Mail. A Smarter Emailhttp://uk.docs.yahoo.com/nowyoucan.html_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderatorcomments to the list.Contact the moderators atcocoa-dev-admins(at)lists.apple.comHelp/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/cocoa-dev/scott%40cocoadoc.comThis email sent to [EMAIL PROTECTED]__________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/kai%40granus.net This email sent to [EMAIL PROTECTED]
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]