I've found a few solutions to others problems around here and elsewhere via Google but no luck with their solutions.
I have a class which controls most of the logic of my flashcard program, and another which controls the view with setters and getters.
Here is the code which interacts with the XIB to change a textfield:
- (void)drawNewQuestion:(NSString*)question :(NSString*)points{
NSLog(@"DRAWING");
[_questionView setStringValue:question];
[_pointsView setStringValue:points];
}
Here is the declaration of the text fields in the .h
@interface MainMenuViewController : NSView{
}
@property (retain) IBOutlet NSTextField* questionView;
@property (retain) IBOutlet NSTextField* answerView;
@property (retain) IBOutlet NSTextField* pointsView;
Finally, the XIB has three textviews (as you can see above) which are connected to the above with referencing outlets to File's Owner.
If you need additional code to help me here I will provide it.
Thanks so much for your time, this is just a learning exercise for me so any explanations are welcome.