>
> I asked earlier, but I’ll ask again: why are you doing this? NSView already
> has a `window` property that provides its window.
I agree, I guess, I should just remove this ivar.
smime.p7s
Description: S/MIME cryptographic signature
___
Cocoa
> On Sep 6, 2021, at 2:14 PM, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> I had assigned the window to an ivar window_ in viewWillMoveToWindow:
>
> - (void) viewWillMoveToWindow: (NSWindow *) newWindow
> {
>window_ = newWindow;
I asked earlier, but I’ll ask again: why are you doing this?
>
> Forgot an @synthesize? We haven’t needed to do that since Xcode 4.2.
>
> Do you know why you needed to do that? It seems pretty much like an edge
> case.
>
Good question.
I had assigned the window to an ivar window_ in viewWillMoveToWindow:
- (void) viewWillMoveToWindow: (NSWindow
> On Sep 6, 2021, at 4:03 PM, Gabriel Zachmann via Cocoa-dev
> wrote:
>
> Mystery solved - it was, of course, a stupid bug on my part.
>
> Just in case somebody else stumbles across this thread: I had forgotten a
> @synthesize in the .m file.
> (Xcode emits a warning about this, but I had ov
Mystery solved - it was, of course, a stupid bug on my part.
Just in case somebody else stumbles across this thread: I had forgotten a
@synthesize in the .m file.
(Xcode emits a warning about this, but I had overlooked it, due to several
other warnings always being there.)
Sorry for bothering y