mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:01:22 +00:00
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:
parent
11276aaed1
commit
431a40577f
1 changed files with 7 additions and 8 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue