I am having trouble assigning a NSString to the text of a NSScrollView. I have tried the following:
NSString *medium = codeView.text;
That didn't work so then I tried:
NSString *medium = [codeView text];
This still doesn't work and it gives me the warning:
NSScrollview may not respond to '-text'
Or in the case of the "." operator it gives me the error:
Request for member 'text' is something not a structure or union.
Does anyone have any advice on how to get around this?
I am initializing the code the following way:
@interface NetCodeViewController : NSObject {
IBOutlet NSTextView *codeView;
}
@property(nonatomic, retain) id *codeView;
@end