Le 28 janv. 2010 à 21:37, David Duncan a écrit : > On Jan 28, 2010, at 12:29 PM, vincent habchi wrote: > >> You're right. Up to that point, I'm quite satisfied with generating the >> contents directly out of the delegate, but, in a sense, your approach is >> more unified, since the same layer could then display either vector (drawn >> out of the database) or raster contents. > > The content you are drawing is raster content, it doesn't matter that you are > using -drawLayer:inContext: or assigning an image to the contents field, in > either case you are getting raster content.
Of course. But then, admitting I do indeed draw offscreen and then load contents in the CALayer, on what object shall I draw? A CGLayer? Something else? > If you mean to see the drawing as it progresses, you will need to manage that > yourself. You would likely want to completely overhaul your rendering process > to do it however, as using a small fixed number of tiles would make this very > slow as you would end up needing to respecify content you've already > specified (basically draw-upload-draw-upload). The trick would obviously be drawing offscreen and then fire a timer each second or so to upload content until the full drawing is done. Why not? Have a very nice day, our is over. Cheers Vincent_______________________________________________ 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 arch...@mail-archive.com