Re: Close Modal window after sheet ends

2015-08-24 Thread Quincey Morris
On Aug 24, 2015, at 11:00 , Alex Kac wrote: > > As for the relevant window properties - i’m not setting any. What would I set > to nil? I’m not setting delegate (you can see 100% of the code below - its > literally just getting the window controller, and then setting the window > controller to

Re: Close Modal window after sheet ends

2015-08-24 Thread Ken Thomases
On Aug 24, 2015, at 12:53 PM, Alex Kac wrote: > > I’ve also tried this…and the code in the dispatch_async never gets called. > I’ve seen other code on github that does something similar so obviously it > *should* work. > > - (IBAction)enterRegCode:(id)sender { > > registrationWind

Re: Close Modal window after sheet ends

2015-08-24 Thread Quincey Morris
On Aug 24, 2015, at 10:41 , Alex Kac wrote: > > registrationWindowController = [[RegistrationWindow alloc] > initWithWindowNibName:@"RegistrationWindow"]; > > [self.window beginSheet:registrationWindowController.window > completionHandler:^(NSModalResponse returnCode) { >

Re: Close Modal window after sheet ends

2015-08-24 Thread Alex Kac
I’ve also tried this…and the code in the dispatch_async never gets called. I’ve seen other code on github that does something similar so obviously it *should* work. - (IBAction)enterRegCode:(id)sender { registrationWindowController = [[RegistrationWindow alloc] initWithWindowNi