• 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: Solved: Link & Table Cursors in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solved: Link & Table Cursors in NSTextView


  • Subject: Re: Solved: Link & Table Cursors in NSTextView
  • From: Jim Correia <email@hidden>
  • Date: Tue, 28 Feb 2006 08:25:57 -0500

On Feb 27, 2006, at 8:40 PM, Glen Simmons wrote:

None of this should be necessary--links get the pointing hand cursor by default, based on the text view's linkTextAttributes. If you need custom cursors, you can use NSCursorAttributeName. If you really need to override the default cursor handling in some way that this doesn't support, don't use cursor rects; instead, override mouseMoved:, call the super method, and then afterward set the cursor if the mouse is over some region you are particularly interested in, otherwise leave it alone.

Maybe it shouldn't be necessary, but I don't get a pointing hand cursor by default. Maybe I'm doing something wrong. I just tried making a new Cocoa Doc based project and added an NSTextView to the doc nib window. Built and ran, then typed "http://www.apple.com"; in the text view, right-clicked on it and chose "Make Link" - no pointing hand. I assume that this should work based on your statement. Is there something else I need to do?

There is a bug in NSTextView where it gets the wrong default link attributes when unarchived - programatically created views work ok.


rdar://4401697

Jim
_______________________________________________
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: Solved: Link & Table Cursors in NSTextView
      • From: Douglas Davidson <email@hidden>
References: 
 >Link & Table Cursors in NSTextView (From: Glen Simmons <email@hidden>)
 >Re: Link & Table Cursors in NSTextView (From: Douglas Davidson <email@hidden>)
 >Solved: Link & Table Cursors in NSTextView (From: Glen Simmons <email@hidden>)

  • Prev by Date: Create semi-transparent NSImage
  • Next by Date: Re: Create semi-transparent NSImage
  • Previous by thread: Solved: Link & Table Cursors in NSTextView
  • Next by thread: Re: Solved: Link & Table Cursors in NSTextView
  • Index(es):
    • Date
    • Thread