> On 2015 Nov 25, at 02:49, Graham Cox wrote:
>
> 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.
Your mind is fine – you’ve just been using Cocoa for so long that y
> On 25 Nov 2015, at 4:58 PM, Quincey Morris
> 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,
On Nov 24, 2015, at 14:54 , Graham Cox wrote:
>
> you close the sheet itself by sending -endSheet to the SHEET, not its parent
I’ve been puzzling over this statement for a while.
At first I thought, “Oh, that’s right, you can. I guess you can send it to the
sheet or the sheet’s parent window.”
> On 2015 Nov 24, at 09:46, Quincey Morris
> wrote:
>
> wrong property … The parent window in relation to *sheets* is “sheetParent”.
Yes. Thank you. Another “bingo” for Quincey :)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
> On 25 Nov 2015, at 3:47 AM, Jerry Krinock wrote:
>
> ’m updating an old project which used the -[NSApp beginSheet:] methods to
> use -[NSWindow beginSheet:completionHandler:]. In so doing, I now need the
> parent window in my action methods, so I can send the -[NSWindow endSheet::]
> m
On Nov 24, 2015, at 08:47 , Jerry Krinock wrote:
>
> In so doing, I now need the parent window in my action methods, so I can send
> the -[NSWindow endSheet::] message which runs the completion handler. In
> many cases, the sheet is handy but the parent window is not. No problem, I
> thought
I’m updating an old project which used the -[NSApp beginSheet:] methods to
use -[NSWindow beginSheet:completionHandler:]. In so doing, I now need the
parent window in my action methods, so I can send the -[NSWindow endSheet::]
message which runs the completion handler. In many cases, the s