• 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: mouse drag feedback
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mouse drag feedback


  • Subject: Re: mouse drag feedback
  • From: Andy Lee <email@hidden>
  • Date: Fri, 15 Mar 2002 21:00:25 -0500

At 5:46 PM -0800 3/15/02, email@hidden wrote:
>>Does MacOS X cocoa has any classes that handle mouse tracking feedback?
>>What I mean is that I want to drag a box with the mouse. I want a visual
>>feedback (a rect with ants), and I want to be able to resize it. (This
>>option is used in the Interface Builder as well.)
>>In MacOS 9 this was possible. Is there an easy way to do so in MacOS X
>>or should I write my own code to handle this?
>
> Really, there was API to do this in one call on OS 9? Wow, that's high level API. Are you sure this wasn't something that some higher-level framework like PowerPlant provided?

I don't know about one call, and frankly I'm remembering this from the one-bit-grayscale OS 6 days (yes, I said 6), but the trick for drawing ants used to be to set the pen pattern to a pattern that had thick black diagonal stripes. Using this pattern, a rectangle drawn with a pen width of 1 would show up as a dashed line. You could make the "ants" appear to march around the rectangle by changing the pen pattern to a slightly different one with the diagonal lines offset a bit. By using XOR to draw the rectangle, you could smoothly resize it as the user dragged the mouse.

--Andy
_______________________________________________
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: 
 >Re: mouse drag feedback (From: email@hidden)

  • Prev by Date: Re: How do I cancel beginSheet: before the next run loop?
  • Next by Date: Re: NSThread and notifications
  • Previous by thread: Re: mouse drag feedback
  • Next by thread: Re: mouse drag feedback
  • Index(es):
    • Date
    • Thread