Re: Expanding all Nodes in an NSOutlineView on Load
Re: Expanding all Nodes in an NSOutlineView on Load
- Subject: Re: Expanding all Nodes in an NSOutlineView on Load
- From: "Doug Knowles" <email@hidden>
- Date: Tue, 23 Oct 2007 12:07:22 -0400
[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:
This email sent to email@hidden