How to support clicks in a non-selectable NSTextView?
How to support clicks in a non-selectable NSTextView?
- Subject: How to support clicks in a non-selectable NSTextView?
- From: "Phillip A. Kavan" <email@hidden>
- Date: Sun, 7 Jul 2002 23:54:53 -0500
hi,
i noticed that an NSTextView has to be "selectable" in order to allow
clicking on "attributed" strings such as URLs. i.e. if i do something
like this:
[myTextView setSelectable:NO];
...then i can no longer click on the URL to get the default behavior
(opening up the link in my default browser, etc.). also, if i make my
document class be the delegate of the NSTextView and implement
-textView:doubleClickedOnCell:inRect:atIndex as part of my document
class implementation, that method is never called if the NSTextView is
not selectable.
so naturally, i am curious...=) is there some way that i can support
clicking in an NSTextView when it is not selectable? i would like my
users to not be able to select and/or copy the text within the view, but
still be able to click on URLs to access them. is that possible?
TIA. -phil.
---
Phillip A. Kavan <
mailto:email@hidden>
http://homepage.mac.com/kavan5
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.