• 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: Selection marquees (rubberband selection?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Selection marquees (rubberband selection?) (From: GJ Developer <email@hidden>)

  • Prev by Date: Re: Programatically detect if any autorelease pool exists?
  • Next by Date: Re: Selection marquees (rubberband selection?)
  • Previous by thread: Selection marquees (rubberband selection?)
  • Next by thread: Re: Selection marquees (rubberband selection?)
  • Index(es):
    • Date
    • Thread