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: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Mon, 6 Sep 2021 23:14:18 +0200
>
> 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 *) newWindow
{
window_ = newWindow;
This ivar is declared in MyView.h and as a property
@property (readwrite) NSWindow * window_;
Well, some of my code is pretty old ....
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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