Re: How to get rid of blinking?
Re: How to get rid of blinking?
- Subject: Re: How to get rid of blinking?
- From: Mike Abdullah <email@hidden>
- Date: Wed, 19 Oct 2011 20:19:20 +0100
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 area to zoom.
> The problem is that when the mouse is being dragged, the rectangle that's
> being drawn is blinking.
> What would be the write approach to make it behave like other software where
> a user can select things with a rectangle?
1. Read the Cocoa drawing guide:
http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CocoaDrawingGuide/CocoaDrawingGuide.pdf
2. Rewrite your code to follow Cocoa's design.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden