• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dragging to select rectangle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Dragging to select rectangle (From: John Nairn <email@hidden>)

  • Prev by Date: kABDatabaseChangedExternallyNotification when?
  • Next by Date: beta testing
  • Previous by thread: Dragging to select rectangle
  • Next by thread: Re: Dragging to select rectangle
  • Index(es):
    • Date
    • Thread