Re: Selection marquees (rubberband selection?)
Re: Selection marquees (rubberband selection?)
- Subject: Re: Selection marquees (rubberband selection?)
- From: "Jeffrey J. Early" <email@hidden>
- Date: Wed, 6 Sep 2006 00:01:26 -0700
Galt --
Try checking out the example program Sketch. You can find it in /
Developer/Examples/AppKit. There is a working example of rubberband
selection in a custom NSView. I would say it's not the cleanest or
easiest code to read, but the functionality is all there.
Jeffrey
On Sep 5, 2006, at 6:45 PM, GJ Developer wrote:
I've been scouring the on-line doc, the web and the mailing list
archives, and haven't come up with much...
I want to implement a drag selection for zooming in on the image,
like Finder does when you drag on the desktop. There are some
obscure references to creating a transparent window and drawing a
partially opaque rectangle on the window, but I can't figure out
how to get the window positioned directly on top of my view, not to
mention how to draw the rectangle inside the window based on the
mouse-down and drag positions.
Any suggestions would be greatly appreciated.
Thanks,
Galt
Galt Johnson
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden