• 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
Cursor above siblings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cursor above siblings


  • Subject: Cursor above siblings
  • From: ecir hana <email@hidden>
  • Date: Fri, 09 Jan 2015 14:19:47 +0100

Hi!

I have a window with a custom view, which contains two children: a textview
with scrollbars and a button. I would like to overlay the button over the
textview so when I click in that area somewhere, the button receives the
event before the textview. It kind of works, except for one thing: the
cursor is always of the I-beam variety, even when above the button, see [1]
and [2].

I think the problem is that the "sibling views overlap" but don't know how
to fix it. I tried to move the button beneath the textview in hierarchy but
that doesn't work (button is not shown) and I tried to `addTrackingArea:`
but that doesn't work either (maybe I didn't do it the right way but then
again, I thought NSButton has its own tracking area).

Please, how can I make the cursor change back to the default variety when
hovering over the button? I can place the button in a custom view and work
with that view, if that helps..?

[1] http://i.stack.imgur.com/3E6AM.png
[2] http://i.stack.imgur.com/TpzoI.png
_______________________________________________

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: Cursor above siblings
      • From: Uli Kusterer <email@hidden>
    • Re: Cursor above siblings
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: NSURL resourceValuesForKeys NSURLPathKey
  • Next by Date: Re: ARC query
  • Previous by thread: Re: NSURL resourceValuesForKeys NSURLPathKey
  • Next by thread: Re: Cursor above siblings
  • Index(es):
    • Date
    • Thread