I have the classes.
@interface USSAppController : NSObject
{
USSWindowController *windowController;
}
-(IBAction)startLesson:(id)sender;
-(IBAction)endLesson:(id)sender;
@end
@implementation USSAppController
-(IBAction)startLesson:(id)sender
{
isLesssonRunning = true;
if(isLesssonRunning)
{
windowController = [[USSWindowController alloc] initWithWindowNibName:@"Lesson"];
[windowController showWindow:self];
}
}
-(IBAction)endLesson:(id)sender
{
[windowController close];
}
@end
I was wondering if i could pass one variable from one class that to another when the window is created on button press?