Re: main nib, firing a secondary nib and it's controller....
Re: main nib, firing a secondary nib and it's controller....
- Subject: Re: main nib, firing a secondary nib and it's controller....
- From: jon <email@hidden>
- Date: Sun, 04 Oct 2009 10:43:30 -0600
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 (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