Setting variables in a different class in Cocoa
问题 I'm trying to learn how to set variables for different classes using one main data class. Here's a diagram of of what I would like to do and the code from my project: ClassA #import <Foundation/Foundation.h> @interface ClassA : NSObject { NSString *stringA; NSString *stringB; } @property (nonatomic, copy) NSString *stringA; @property (nonatomic, copy) NSString *stringB; @property (weak) IBOutlet NSTextField *textA; @property (weak) IBOutlet NSTextField *textB; - (IBAction)displayStrings:(id