I want to make a multiple windows mac application and I am stuck with the multiple window part !
I can display some windows by creating a xib file and using this method :
-(void)popView:(NSString *)viewName {
_windowController = [[AddProdutWindowController alloc] initWithWindowNibName:viewName];
[_windowController showWindow:nil];
}
With
@property (strong, nonatomic) AddProdutWindowController *windowController;
in my header file and AddProductViewController
inherit from NSWindowViewController
I have linked a subclass of NSViewController
in Xcode to my xib
file.
Now I want to send some datas to my new view and show them in some NSTextField
and I have not a single clue how to do it !
I'm very confused with the WindowsController
and ViewController
, I don't exactly know how / where use them.
Thank you for helping.