thanks, as a follow up, is this the proper way to create and open the instance? (also globally, so it can be used in other parts of the app?) can this be improved on? (starting up a window Controller object and it's xib file)

thanks for the suggestion.
-Jon.

I also need to deallocated the instance on closing of the window...

-----------------------------------------------------------
#import <Cocoa/Cocoa.h>
#import "WebViewController.h"

@interface AppDelegate : NSObject
{
}

@end
-----------------------------------------------------------
#import "AppDelegate.h"

static WebViewController *webViewController = nil;

@implementation AppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)notification
{
webViewController = [[WebViewController alloc] initWithWindowNibName:@"WebViewController"];
}

@end




On Oct 3, 2009, at 10:21 PM, Jens Alfke wrote:


On Oct 3, 2009, at 4:19 PM, jon wrote:

i want to have a WindowController object and it's own nib separate from the main nib...... but i want this secondary nib and controller to fire up when the application launches...

Create and open an instance of that WindowController subclass from your app delegate's -applicationDidFinishLaunching: method.

—Jens


_______________________________________________

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

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

Reply via email to