I have a NSView which contains several instances of NSTextView. I would like to get the content (string) of each instance. So far, I have this (this code does not compile) :
for(NSView *view in [self subviews]) {
NSLog(@"class: %@ ", [view className]);
if([view isKindOfClass:[NSTextView class]])
NSLog(@"[view string] %@",[view string]);}
At this point, I expect to be able to send the string
message to view
which is an instance of NSTextView, but:
Error message: No visible @interface for 'NSView' declares the selector 'string'
Where is my error ?