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




On Oct 23, 2007, at 12:07 PM, Doug Knowles wrote:

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.

Why not just override the NSDocument windowControllerDidLoadNib: method in your NSDocument subclass and then use a delayed perform


[theAppropriateTarget performSelector:@selector(expandMyNodes:) withObject:theAppropriateObject :0.0f];

_______________________________________________

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>)
 >Re: Expanding all Nodes in an NSOutlineView on Load (From: "Doug Knowles" <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.