FROM : delanoy
DATE : Sat Jul 01 12:53:04 2006
Hello all,
I'm looking for a method in NSTextView
that gets triggered exactly when the user selects a portion of text
(and it gets colored blue ...). I thought
at first that the delegate method
-(void) textViewDidChangeSelection:(NSNotification*)aNotification
was what I needed, but after toying with it in the debugger I saw
little difference with -textDidChange: -textViewDidChangeSelection is
called just about every time
the user modifies the text. It seems that there always is
a "default" selection even when the user has actually selected nothing. So
where is
the method I need ?
Ewan
DATE : Sat Jul 01 12:53:04 2006
Hello all,
I'm looking for a method in NSTextView
that gets triggered exactly when the user selects a portion of text
(and it gets colored blue ...). I thought
at first that the delegate method
-(void) textViewDidChangeSelection:(NSNotification*)aNotification
was what I needed, but after toying with it in the debugger I saw
little difference with -textDidChange: -textViewDidChangeSelection is
called just about every time
the user modifies the text. It seems that there always is
a "default" selection even when the user has actually selected nothing. So
where is
the method I need ?
Ewan
| Related mails | Author | Date |
|---|---|---|
| delanoy | Jul 1, 12:53 | |
| Antonio Nunes | Jul 1, 13:16 |






Cocoa mail archive

