• 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: Jerry Krinock <email@hidden>
  • Date: Fri, 10 Jun 2016 06:45:00 -0700

> On 2016 Jun 10, at 06:16, 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?

The -windowControllerDidLoadNib: documentation states the reason for this, that it is called "if the receiver is the nib file’s owner”.  So, check what is your nib File’s Owner.

I usually don’t get it either, because I like to set as owner of my document nib files a window controller, and not the associated document.
_______________________________________________

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


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

  • Prev by Date: Is windowControllerDidLoadNib used only when windowNibName is?
  • Next by Date: Re: Is windowControllerDidLoadNib used only when windowNibName is?
  • Previous by thread: Is windowControllerDidLoadNib used only when windowNibName is?
  • Next by thread: Re: Is windowControllerDidLoadNib used only when windowNibName is?
  • Index(es):
    • Date
    • Thread