Re: override behaviour of handling NSLinkAttributeName
Re: override behaviour of handling NSLinkAttributeName
- Subject: Re: override behaviour of handling NSLinkAttributeName
- From: Jens Alfke <email@hidden>
- Date: Mon, 2 Nov 2009 20:05:33 -0800
On Nov 2, 2009, at 8:01 PM, PCWiz wrote:
By default the clicked URL just opens in the default web browser. Is
there any way to override this behaviour and have my own code run in
place of just opening the URL.
There's an NSTextView delegate method for this:
- (BOOL)textView:(NSTextView *)textView clickedOnLink:(id)link atIndex:
(NSUInteger)charIndex;
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden