How to get rid of blinking?

2011-10-19 Thread Nick
Hello Could you advice me how to get rid of blinking in the following code? This is an NSView's subclass, I am trying to draw a rectangle for zooming (theoretically a user is supposed to be able to zoom in a piece of a view, by selecting a rectangle area to zoom. The problem is that when the mouse

Re: How to get rid of blinking?

2011-10-19 Thread Fritz Anderson
On 19 Oct 2011, at 12:41 PM, Nick wrote: Could you advice me how to get rid of blinking in the following code? This is an NSView's subclass, I am trying to draw a rectangle for zooming (theoretically a user is supposed to be able to zoom in a piece of a view, by selecting a rectangle area

Re: How to get rid of blinking?

2011-10-19 Thread Mike Abdullah
On 19 Oct 2011, at 18:41, Nick wrote: Hello Could you advice me how to get rid of blinking in the following code? This is an NSView's subclass, I am trying to draw a rectangle for zooming (theoretically a user is supposed to be able to zoom in a piece of a view, by selecting a rectangle

Re: How to get rid of blinking?

2011-10-19 Thread Nick
Thank you 2011/10/19 Fritz Anderson fri...@manoverboard.org On 19 Oct 2011, at 12:41 PM, Nick wrote: Could you advice me how to get rid of blinking in the following code? This is an NSView's subclass, I am trying to draw a rectangle for zooming (theoretically a user is supposed

Re: How to get rid of blinking?

2011-10-19 Thread Jim McGowan
-(void)mouseDragged:(NSEvent *)theEvent { NSPoint locationOnCanvas = [self convertPoint:[theEvent locationInWindow] fromView:nil]; if(currentMouseMode == MMZooming) { *[self display]; //clear the previous rectangle [self lockFocus]; [self