Re: Dragging to select rectangle
Re: Dragging to select rectangle
- Subject: Re: Dragging to select rectangle
- From: John Randolph <email@hidden>
- Date: Tue, 2 Sep 2003 17:26:53 -0700
On Sep 2, 2003, at 4:14 PM, John Nairn wrote:
I need an option to click on NSView and drag out a rectangle to select
a region of a picture. I thought I came across a method to accomplish
this once before in a single call, but I can not find it now. Is there
a simple call or do I need something more involved such as
a. Use mouseDown method and keep control while mouse is down updating
current rectangle as needed until mouse is released.
b. Implement drag and drop methods with feedback to connect origin to
current position.
You may want to have a look at the "Cropped Image" sample at:
http://developer.apple.com/samplecode/Sample_Code/Cocoa/
Cropped_Image.htm
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.