Re: Pause during drawing

2010-11-10 Thread Siegfried
On 10/11/2010, at 03:01, Graham Cox wrote: On 10/11/2010, at 4:23 AM, Siegfried wrote: The question is: Is it possible to pause after each call…? Yes, but you need to refactor your code. Just inserting a delay while drawing is a bad idea and won't work. Set up a timer that calls

Pause during drawing

2010-11-09 Thread Siegfried
Hello, For studying purposes (on recursion), I build a simple NSView subclass capable of drawing a Sierpiński triangle. The class has 2 helper methods to draw triangles and the fractal itself. The former is quite simple, draws triangles given start point, height and width. The latter, also

Re: Pause during drawing

2010-11-09 Thread Graham Cox
On 10/11/2010, at 4:23 AM, Siegfried wrote: The question is: Is it possible to pause after each call to -drawTriangle say for 0.25 second and redisplay the view, so I can see each triangle being draw? Yes, but you need to refactor your code. Just inserting a delay while drawing is a bad