Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Solved: Link & Table Cursors in NSTextView



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.