Re: Getting Windows to Appear.....



Yeah, realised that afterwards, I made it a property for now, it will be retained by the App Manager once I add it,


On 29 Aug 2017, at 19:16, Quincey Morris <quinceymorris@...> wrote:

On Aug 29, 2017, at 08:54 , Dave <dave@...> wrote:

-(void) viewDidAppear
NSStoryboard* myStoryboard = [NSStoryboard storyboardWithName:@"MacManualLayout" bundle:nil];
NSWindowController* myGameWindowController = [myStoryboard instantiateControllerWithIdentifier:@"LTWGameWindowController1"];
[myGameWindowController showWindow:nil];

(code edited to get rid of the noise)

That’s what you’re doing, really? The window controller you create here has no owning references outside this method’s local variable, so it’s going to disappear as soon as this method returns, taking the window with it into oblivion.

Join to automatically receive all group messages.