Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expanding all Nodes in an NSOutlineView on Load



[Putting this back on the coca-dev thread on the chance it might help
somebody else; I get a lot of my answers in the archives...]

On 10/23/07, Chris Blunt <email@hidden> wrote:
>
> Hi Doug,
>
> Thanks for your email. I'm not sure why, but my windowDidLoad method
> is not firing. My MyDocument.h is a NSPersistentDocument and I've
> connected it as the window's delegate, but no luck.
>
> Chris
>

Chris,

Forgive me if these sound too obvious, but...


Note that windowDidLoad is a method of NSWindowController, not a NSWindow
delegate method.

You'll need to subclass NSWindowController and override windowDidLoad, then
ensure that your subclass is instantiated to load the nib.  It may be
necessary to ensure that your nib file specifies the class of the "File's
Owner" to be your NSWindowController subclass.

I hope this helps.

Doug K;
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Expanding all Nodes in an NSOutlineView on Load (From: "Chris Blunt" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.