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

Re: Cursor above siblings


  • Subject: Re: Cursor above siblings
  • From: ecir hana <email@hidden>
  • Date: Sat, 10 Jan 2015 17:46:46 +0100

On Sat, Jan 10, 2015 at 4:54 PM, Uli Kusterer <email@hidden>
wrote:

>
>  I think you’re reading that into the documentation. In most views,
> cursor-setting is pretty much predictable, and I think text views are
> mainly meant as an example here, and aren’t that special.
>

Yeah, you are probably right...

I did the same, and one thing that looks like it turns off the cursor is
> overriding resetCursorRects and updateTrackingAreas to do nothing, and doing
>
> -(void) viewDidMoveToWindow
> {
>         [super viewDidMoveToWindow];
>
>         [self.enclosingScrollView setDocumentCursor: nil];
>         [self.enclosingScrollView updateTrackingAreas];
>         [self.enclosingScrollView resetCursorRects];
> }
>
> That turns off the text view’s cursor, it seems.


Well, I have the custom textview which has empty both "resetCursorRects"
and "updateTrackingAreas", and the snippet from you above, and it still
sets the I-beam cursor. What's more, now it sometimes does not set the
cursor back to the arrow one when I leave the textview area.

I will definitely let you know, if I figure out something useful... One
idea is that I may just drop this "floating above" approach and do what
NSTextFinder does, namely temporary resize the enclosing scrollview and put
that button over the newly cleaned up area. I would prefer the former,
though, so I will try a bit more.
_______________________________________________

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: Quincey Morris <email@hidden>
References: 
 >Cursor above siblings (From: ecir hana <email@hidden>)
 >Re: Cursor above siblings (From: Uli Kusterer <email@hidden>)
 >Re: Cursor above siblings (From: ecir hana <email@hidden>)
 >Re: Cursor above siblings (From: Uli Kusterer <email@hidden>)

  • Prev by Date: ogles_gpgpu: GPGPU for iOS and Android using OpenGL ES 2.0
  • Next by Date: Re: A Polite Request of Apple's Bug Triage Committee
  • Previous by thread: Re: Cursor above siblings
  • Next by thread: Re: Cursor above siblings
  • Index(es):
    • Date
    • Thread