• 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: Expanding all Nodes in an NSOutlineView on Load
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Expanding all Nodes in an NSOutlineView on Load
      • From: Scott Anguish <email@hidden>
References: 
 >Expanding all Nodes in an NSOutlineView on Load (From: "Chris Blunt" <email@hidden>)

  • Prev by Date: Re: Thin Windows
  • Next by Date: Re: will/didChangeValueForKey: Real World Usage
  • Previous by thread: Expanding all Nodes in an NSOutlineView on Load
  • Next by thread: Re: Expanding all Nodes in an NSOutlineView on Load
  • Index(es):
    • Date
    • Thread