sorry for this newbie question, but i'm stuck in getting back a text from an NSTextView.
but getting it back with :
my $text = $self->{'MajRVAffiche'}->->stringValue;
(the same as for NSTextField)
returns an error :
Instances of class NSTextView do not respond to selector stringValue
you can use $text = $self->{'MajRVAffiche'}->string;
This method is inherited from NSText, which is why you probably could not find it.
file://localhost/Developer/Documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSText.html#//apple_ref/occ/instm/ NSText/string
string
- (NSString *)string
Returns the characters of the receiver's text. For performance reasons, this method returns the current backing store of the text object. If you want to maintain a snapshot of this as you manipulate the text storage, you should make a copy of the appropriate substring.
Cheers,
Thilo
