Re: Is windowControllerDidLoadNib used only when windowNibName is?
Re: Is windowControllerDidLoadNib used only when windowNibName is?
- Subject: Re: Is windowControllerDidLoadNib used only when windowNibName is?
- From: email@hidden
- Date: Fri, 10 Jun 2016 23:04:09 +0900
If you choose to use explicit window controllers, they should own the window they load. That's what they're for.
You might customize them with a protocol on the document controller as a kind of delegate for the window controllers to give a simple callback API that is decoupled.
This pattern is rich in Cocoa.
A little boilerplate goes a long way.
Sent from my iPhone
> On Jun 10, 2016, at 10:16 PM, Daryle Walker <email@hidden> wrote:
>
> I replaced windowNibName with makeWindowControllers since I'm moving window management to a separate controller. I kept windowControllerDidLoadNib around. Now I wondered if it still gets called. I put in a "print( #function + "got called." )" and never saw the output. Is this method called only when the default NIB-in-NSDocument strategy is used? (And so I can remove it in my app.)
>
> Sent from my iPhone
> _______________________________________________
>
> 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
_______________________________________________
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