Re: -[NSWindow parentWindow] for sheet never works?
Re: -[NSWindow parentWindow] for sheet never works?
- Subject: Re: -[NSWindow parentWindow] for sheet never works?
- From: Graham Cox <email@hidden>
- Date: Wed, 25 Nov 2015 21:49:52 +1100
> On 25 Nov 2015, at 4:58 PM, Quincey Morris <email@hidden> wrote:
>
> n the end, I’ve come to the (possibly incorrect) conclusion, and that Graham misspoke.
Yup, I’m a complete idiot. I looked at the docs, saw [NSWindow -endSheet:sheetWindow] and totally misinterpreted it. I might be losing my mind, this sort of thing seems to be happening a lot lately.
I also felt sure that I’d used endSheet to trigger a completion block in the manner I suggested, but now I come to look for a concrete example that’s not the case:
- (IBAction) ok:(id)sender
{
[self.window.sheetParent endSheet:self.window returnCode:NSOKButton];
}
So, as you were, carry on.
—G.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden