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

Re: cursor handling


  • Subject: Re: cursor handling
  • From: Dorian Johnson <email@hidden>
  • Date: Fri, 6 Jul 2007 17:36:54 -0500

On Jul 6, 2007, at 10:42 AM, David Harper wrote:

I am not using cursor rectangles in the subview because the cursor rectangle contains the entire view and i think mouseEntered and mouseExited responses are sufficient to get the information necessary.


Cursor rectangles work fine for the entire view. It's much easier using them as well. If done correctly the cursors should behave much more consistently than if you choose to do it yourself.


Just use this override:

- (void)resetCursorRects
{
[self discardCursorRects];
[self addCursorRect:[self visibleRect] cursor:_cursor /* your cursor ivar */];
}



And then any time you change the cursor, run

[[self window] invalidateCursorRectsForView:self];


Does that help or do you really have a better reason not to use the provided cursor facilities?


- Dorian

_______________________________________________

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


References: 
 >cursor handling (From: David Harper <email@hidden>)

  • Prev by Date: Re: speechSynthesizer willSpeakWord trouble
  • Next by Date: Re: speechSynthesizer willSpeakWord trouble
  • Previous by thread: cursor handling
  • Next by thread: Quickest way to get access to the raw pixel data of a CIImage?
  • Index(es):
    • Date
    • Thread