Tidied up the clickedOnLink:atIndex: method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11935 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-01-02 08:39:48 +00:00
parent 11276aaed1
commit 431a40577f

View file

@ -1925,15 +1925,14 @@ static NSNotificationCenter *nc;
- (void) clickedOnLink: (id)link
atIndex: (unsigned int)charIndex
{
/* Notifies the delegate that the user clicked in a link at the
specified charIndex. The delegate may take any appropriate actions
to handle the click in its textView: clickedOnLink: atIndex:
method. */
if (_delegate != nil &&
[_delegate respondsToSelector:
@selector(textView:clickedOnLink:atIndex:)])
if (_delegate != nil)
{
[_delegate textView: self clickedOnLink: link atIndex: charIndex];
SEL selector = @selector(textView:clickedOnLink:atIndex:);
if ([_delegate respondsToSelector: selector])
{
[_delegate textView: self clickedOnLink: link atIndex: charIndex];
}
}
}