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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to