• 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: How to track a lost mouseDown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to track a lost mouseDown


  • Subject: Re: How to track a lost mouseDown
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 27 Aug 2007 14:07:31 -0400

> I have custom view that is not receiving a mouseDown.
> How do most efficiently track what is happening to the event?

  With respect, you're asking the wrong question. You need to ask,
"How do I receive -mouseDown: in my custom view?"

> My customView's - resetCursorRects gets called and the cursor changes
> correctly when mouse moves thru the rect.
> However when I then mouseDown (inside the changed cursorRect!) - nothing

  What makes you think a cursor rect has anything to do with
mouse-down events? It's a *cursor* rect. ;-)

  Search the docs for "tracking rect". You need to implement
-addTrackingRect:owner:userData:assumeInside: in all the right places
to add, keep track of, and remove tracking rects when your view's
frame changes or it's added to / removed from a
window/superview/whatever your situation calls for.

--
I.S.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to track a lost mouseDown
      • From: "I. Savant" <email@hidden>
References: 
 >How to track a lost mouseDown (From: Steve Cronin <email@hidden>)

  • Prev by Date: Re: CGContextSetStyle console log error?
  • Next by Date: Re: How to track a lost mouseDown
  • Previous by thread: How to track a lost mouseDown
  • Next by thread: Re: How to track a lost mouseDown
  • Index(es):
    • Date
    • Thread