• 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: The correct use of addCursorRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The correct use of addCursorRect


  • Subject: Re: The correct use of addCursorRect
  • From: "Ben Kennedy" <email@hidden>
  • Date: Sat, 2 Nov 2002 20:13:42 -0500
  • Organization: Zygoat Creative Technical Services

On 03,11,02 at 8:00 pm -0500, Matthew Smith wrote:

>I'm curious about the correct use of addCursorRect. I want to have the
>cursor become a hand when it is over a certain NSView, so I am calling the
>following (self being an overridden NSView):

Couple of things:

a) where are you calling this code; is it in your view's -
resetCursorRects: method? That's where it needs to be.

b) once you put your code there, you should probably expect an i-beam
cursor (not a hand), since that's the NSCursor you're asking for. :)

>Also, would I need to call the following to set the arrow cursor back?

Nope. Once the cursor is out of your rect, it will change to whatever
it's supposed to be there.

-b

--
Ben Kennedy, chief magician
zygoat creative technical services
613-228-3392 | 1-866-466-4628
http://www.zygoat.ca
_______________________________________________
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.

  • Follow-Ups:
    • Re: The correct use of addCursorRect
      • From: Matthew Smith <email@hidden>
References: 
 >The correct use of addCursorRect (From: Matthew Smith <email@hidden>)

  • Prev by Date: The correct use of addCursorRect
  • Next by Date: Re: The correct use of addCursorRect
  • Previous by thread: The correct use of addCursorRect
  • Next by thread: Re: The correct use of addCursorRect
  • Index(es):
    • Date
    • Thread