Re: Solved: Link & Table Cursors in NSTextView
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