Re: Accessing a property of a view via its controller doesn't work
Re: Accessing a property of a view via its controller doesn't work
- Subject: Re: Accessing a property of a view via its controller doesn't work
- From: Ben Kennedy via Cocoa-dev <email@hidden>
- Date: Mon, 6 Sep 2021 23:14:19 -0700
> On Sep 6, 2021, at 2:14 PM, Gabriel Zachmann via Cocoa-dev
> <email@hidden> 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? NSView already has
a `window` property that provides its window.
b
_______________________________________________
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