On Aug 24, 2015, at 11:00 , Alex Kac <[email protected]> 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 nil when its done.
The window controller itself may set either or both of the “delegate” and “windowController” properties, both of which are unowned (i.e.weak) references and therefore dangerous at the end of the window controller life cycle. If setting the window controller to nil causes it to be deallocated, you could be heading for a crash. If you explicitly order out the sheet, I think that will (as a side effect) cause sheet window’s “windowController” property to be set to nil for you, but I don’t think the delegate ever gets cleared automatically. On Aug 24, 2015, at 10:53 , Alex Kac <[email protected]> wrote: > > if (returnCode == 1) > { > quitMeansCloseWindow = YES; > dispatch_async(dispatch_get_main_queue(), ^{ > NSLog(@“Do I get called?”); > }); > } This make it look like there’s something else wrong. I don’t think a modal window should block the main queue. _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
