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

Re: Problem with setting a cursor


  • Subject: Re: Problem with setting a cursor
  • From: Jim McGowan <email@hidden>
  • Date: Mon, 7 Jun 2010 12:42:32 -0700

On 7 Jun 2010, at 12:01 , Gideon King wrote:

> I have a view where I set the cursor in a mouse moved event, when the mouse is over certain places in my view (resize handles for objects). This works fine, but sometimes I need to add some subviews to this view, and for some reason, when I do, it stops setting the cursors in some of the places where it should.

If I understand correctly you are calling NSCursor's -set from within your view's -mouseMoved: method.  If you are just changing cursor to indicate resize control areas, it would probably be cleaner to override the view's -resetCursorRects: method and add cursor rects there, rather than try to force a change when an event is being handled.

Jim McGowan

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: Problem with setting a cursor
      • From: Gideon King <email@hidden>
  • Prev by Date: Debugging sporadic crashes
  • Next by Date: Re: Custom field editor context menu
  • Previous by thread: Problem with setting a cursor
  • Next by thread: Re: Problem with setting a cursor
  • Index(es):
    • Date
    • Thread