> On Jun 10, 2016, at 9:45 AM, Jerry Krinock <je...@ieee.org> wrote:
> 
>> On 2016 Jun 10, at 06:16, Daryle Walker <dary...@mac.com> 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.


I’m using storyboards, which changes the “NIB file’s owner” to a reference to 
the window/view controller.  So does this mean I can remove “- 
windowControllerDidLoadNib”?

— 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com 


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to