Thank you Jean-Daniel for your thoughts on this!
Shark revealed that the most time was spend inside
NSDrawNinePartImage, so I replaced that function by a self-made
lightweight version. Here I discovered that most time was spend on
drawing the center image, which is scaled along both the X
Le 6 mars 09 à 20:42, Jean-Daniel Dupas a écrit :
Le 6 mars 09 à 20:33, Sebastian Morsch a écrit :
Hello,
I wrote a delegate that draws a bezel inside a CALayer using
NSDrawNinePartImage. The drawing happens inside the
drawLayer:inContext: method and it works well. The only problem is
Le 6 mars 09 à 20:33, Sebastian Morsch a écrit :
Hello,
I wrote a delegate that draws a bezel inside a CALayer using
NSDrawNinePartImage. The drawing happens inside the
drawLayer:inContext: method and it works well. The only problem is
that it redraws really slow when the layers frame is
Hello,
I wrote a delegate that draws a bezel inside a CALayer using
NSDrawNinePartImage. The drawing happens inside the
drawLayer:inContext: method and it works well. The only problem is
that it redraws really slow when the layers frame is resized by the
user.
The layer is simply attach