• 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 the cursor for a link in an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the cursor for a link in an NSTextView


  • Subject: Re: Setting the cursor for a link in an NSTextView
  • From: Larry Gerndt <email@hidden>
  • Date: Tue, 31 May 2005 10:51:37 -0700

Do you have the link attribute set? 
Yes

By default that should cause the cursor to change to the pointing hand without you having to do anything.
While that seems logical, the TextLinks example indicates that I should set up a cursor rect.  If I don't, I get the I-beam at all times.

Is your text view selectable?
No, I programmatically set it non-selectable.

What system version are you running on?
Tiger

On May 31, 2005, at 10:38 AM, Douglas Davidson wrote:

On May 30, 2005, at 9:03 PM, Larry Gerndt wrote:



I'm using an NSTextView whose value is bound to an attributed string in File's Owner.  The string contains a link.  Following Apple's TextLinks example, I've set up cursor rects to display the finger cursor whenever the mouse is hovering over the link in the view (the link occupies the entire visible region of the view).  However, at run time it seems that some other part of the system is trying to set the I-beam cursor on that view and they usually win, so most of the time it displays the I-beam but I can fiddle around and get it to display the finger cursor in some cases.   Can anyone shed any light on how to resolve this problem?




Do you have the link attribute set?  By default that should cause the cursor to change to the pointing hand without you having to do anything.  Is your text view selectable?  What system version are you running on?



--

Larry Gerndt

AIM Handle: SonOfTheSonOfMan

Let the truth be told though the heavens fall -- James Garrison




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Setting the cursor for a link in an NSTextView
      • From: Douglas Davidson <email@hidden>
References: 
 >Setting the cursor for a link in an NSTextView (From: Larry Gerndt <email@hidden>)
 >Re: Setting the cursor for a link in an NSTextView (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Web Archive Files
  • Next by Date: Re: Web Archive Files
  • Previous by thread: Re: Setting the cursor for a link in an NSTextView
  • Next by thread: Re: Setting the cursor for a link in an NSTextView
  • Index(es):
    • Date
    • Thread