• 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: problem with addTrackingRectangle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with addTrackingRectangle


  • Subject: Re: problem with addTrackingRectangle
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 15 Feb 2006 11:55:37 -0500
  • Organization: Rogue Research

On 2006-02-15 10:22, Ivan Kourtev said:

>I am having a problem adding a tracking rectangle to a custom view --
>I've overridden - resetCursorRects, and I am sending [self
>addTrackingRect:...] while in resetCursorRects.  But I think the
>problem is that my custom view never actually receives any
>resetCursorRects messages (I checked and know this for a fact).
>
>I also overrode -invalidateCursorRectsForView: in my custom window
>class containing the custom view.  I verified that the window
>receives invalidateCursorRectsForView messages just fine.  Then why
>doesn't resetCursorRects get sent to my custom view?

This sounds very familiar to a problem I had a while ago, and maybe it's
what you're seeing.  Basically, invalidateCursorRectsForView: stops
working if resetCursorRects: adds no cursors.  In my app, depending on
modifier keys and other stuff, sometimes in my resetCursorRects: method
there are no cursors I want to add.  But if you don't add at least one,
invalidateCursorRectsForView: won't work anymore.  My workaround was to
always add at least one, like this:

[self addCursorRect:NSMakeRect(0,0,1,1) cursor:[NSCursor arrowCursor]];

This bug is about 4 years old, but not fixed:
<rdar://4130594>
<http://www.cocoabuilder.com/archive/message/2002/10/22/70852>

If this if your problem too, please file another bug, maybe it'll get
fixed this decade! :)

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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: 
 >problem with addTrackingRectangle (From: Ivan Kourtev <email@hidden>)

  • Prev by Date: Re: problem with addTrackingRectangle
  • Next by Date: Re: MDItemCreate very, very, very, slow -- and fails
  • Previous by thread: Re: problem with addTrackingRectangle
  • Next by thread: Re: problem with addTrackingRectangle
  • Index(es):
    • Date
    • Thread