• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is windowControllerDidLoadNib used only when windowNibName is?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Is windowControllerDidLoadNib used only when windowNibName is? (From: Daryle Walker <email@hidden>)

  • Prev by Date: Re: Is windowControllerDidLoadNib used only when windowNibName is?
  • Next by Date: Sidebar outline view, rowSizeStyle, and bold text
  • Previous by thread: Re: Is windowControllerDidLoadNib used only when windowNibName is?
  • Next by thread: Sidebar outline view, rowSizeStyle, and bold text
  • Index(es):
    • Date
    • Thread