• 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
Dragging to select rectangle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dragging to select rectangle


  • Subject: Dragging to select rectangle
  • From: John Nairn <email@hidden>
  • Date: Tue, 02 Sep 2003 17:14:24 -0600

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.

------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page: http://www.eng.utah.edu/~nairn
_______________________________________________
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.

  • Follow-Ups:
    • Re: Dragging to select rectangle
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Dragging to select rectangle
      • From: John Randolph <email@hidden>
  • Prev by Date: Re: Enough with the newbie C questions!
  • Next by Date: kABDatabaseChangedExternallyNotification when?
  • Previous by thread: Re: NSImage from Palm Bitmap?
  • Next by thread: Re: Dragging to select rectangle
  • Index(es):
    • Date
    • Thread