• 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: Matthew Smith <email@hidden>
  • Date: Sun, 03 Nov 2002 12:20:49 +1100

> 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.

No, or not yet anyway :)
That would explain it then...

> 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. :)

Yep, I aim to deal with make the cursor a hand next :)

>> 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.

Righto...

What would the use of setOnMouseExited:YES be then, to define the cursor for
everywhere but this rect?? I gather that this is still only in the view, and
not app wide...

Thanks for the help,

Matt
_______________________________________________
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: "Ben Kennedy" <email@hidden>
References: 
 >Re: The correct use of addCursorRect (From: "Ben Kennedy" <email@hidden>)

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