Re: How to prevent redrawing window when resized

2011-11-02 Thread Vojtěch Meluzín
Damn, Jens you were right! It's my fault. Sorry for the problems. Vojtech Dne 2. listopadu 2011 23:36 Vojtěch Meluzín napsal(a): > No no, just during the drawRect. I was just explaining how the drawing is > done, just in case it matters. The reason is that CGContextRef was used > with carbon as

Re: How to prevent redrawing window when resized

2011-11-02 Thread Vojtěch Meluzín
No no, just during the drawRect. I was just explaining how the drawing is done, just in case it matters. The reason is that CGContextRef was used with carbon as well, so the code is more or less the same. Vojtech Dne 2. listopadu 2011 23:18 Jens Alfke napsal(a): > > On Nov 2, 2011, at 1:39 PM,

Re: How to prevent redrawing window when resized

2011-11-02 Thread Jens Alfke
On Nov 2, 2011, at 1:39 PM, Vojtěch Meluzín wrote: > It is then used to get CGContextRef for drawing. What does that mean, exactly? Does anything draw into the view except during the -drawRect: method? —Jens___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: How to prevent redrawing window when resized

2011-11-02 Thread Vojtěch Meluzín
> What you’re seeing is definitely not normal behavior. Either it’s an > artifact of the unusual way your app is structured (is this happening > within that modal panel?), or you’re doing something unusual when drawing > your view. How are you doing the drawing? You should just need to override > -

Re: How to prevent redrawing window when resized

2011-11-02 Thread Jens Alfke
On Nov 2, 2011, at 12:13 PM, Vojtěch Meluzín wrote: > Is there a way to prevent > OS from filling the window with white and painting the original image, and > rather ask the view immediately? What you’re seeing is definitely not normal behavior. Either it’s an artifact of the unusual way your a