• 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: Setting cursor for subview of NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting cursor for subview of NSTextView


  • Subject: Re: Setting cursor for subview of NSTextView
  • From: Martin Wierschin <email@hidden>
  • Date: Fri, 12 Mar 2010 15:15:25 -0800

I have a custom NSTextAttachmentCell that does its work by adding
subviews to the NSTextView (e.g. NSButtons). This works fine.

What I can't get to work is cursor handling; I always get an arrow
cursor when the mouse is over my views. I overwrite resetCursorRects,
like this:
...
This doesn't help. Getting desperate, I tried implementing mouseMoved:,
but it's not even called

Overriding mouseMoved is unfortunately required if you want to customize the mouse cursor in NSTextView (see this post by the helpful Mr Davidson). However, as the docs state, your view must be first responder in order to receive mouseMoved events. Have you checked that?


~Martin



_______________________________________________

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: Setting cursor for subview of NSTextView
      • From: email@hidden (Stefan Haller)
References: 
 >Setting cursor for subview of NSTextView (From: email@hidden (Stefan Haller))

  • Prev by Date: Re: Use of KVC Array operators
  • Next by Date: Re: Key-Value Observing speed
  • Previous by thread: Setting cursor for subview of NSTextView
  • Next by thread: Re: Setting cursor for subview of NSTextView
  • Index(es):
    • Date
    • Thread