Re: NSDrawNinePartImage draws slowly in CALayer

2009-03-08 Thread Sebastian Morsch
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

Re: NSDrawNinePartImage draws slowly in CALayer

2009-03-06 Thread Jean-Daniel Dupas
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

Re: NSDrawNinePartImage draws slowly in CALayer

2009-03-06 Thread Jean-Daniel Dupas
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