• 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
Setting cursor rects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting cursor rects


  • Subject: Setting cursor rects
  • From: Dale Miller <email@hidden>
  • Date: Wed, 24 Jan 2007 10:33:17 -0700

Hi, All
I have two related problems with using CursorRects in a View. These problems were discussed in postings by Bill Bumgarner in the Apple Mailing Lists, c. 12/28/2001. My Googling did not turn up any resolution for the issue. Either I'm making the same mistakes, the documentation has not been fixed, or a bug has not been fixed. I would like to ask the community for guidance in:
1) a procedure for determining if an issue has has been reported to Apple (or any other issue in the future)
2) determining Apple's response to the issue
3) reporting an issue to Apple
As a Mac newbie, I've missed picking up this knowledge.
In case anyone has further information on the specific issue, I'll describe it here: (sorry, I don't have a site to post examples to)
1) If a cursor rect has an edge colinear with an edge of the owning view, the rect does not catch the cursor moving into it from outside the view on that edge.
2) I've had partial success by insetting the cursor rect from the view edge. However, even if I inset the rect by as much as 5 pixels, the rect misses the transition if the mouse is moved fast enough. It appears that the cursor rect transition is only detected when successive mouse position samples detect a transition from within the view
but outside the cursor rect to a position within the rect.
3) My "resetCursorRects" method is only called the first time I invoke "invalidateCursorRectsForView". It seems that this problem appears if the "invalidate" is called from a method of the view itself. If the "invalidate" is called from a method of another object, the "reset" method is called as expected. When the view geometry changes, the "reset" method is called as expected. However, I need to change the cursorRect to enclose new text added to the view (bracketed with "begin/end Edit". Since the text is added from a "controller" object, I get around this by doing the "invalidate" from the controller immediately after the "insertText"


Thanks,

Dale Miller
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Setting cursor rects
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Lucene/Cocoa integration
  • Next by Date: Assuring Helvetica font present
  • Previous by thread: Re: Lucene/Cocoa integration
  • Next by thread: Re: Setting cursor rects
  • Index(es):
    • Date
    • Thread