• 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: main nib, firing a secondary nib and it's controller....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >main nib, firing a secondary nib and it's controller.... (From: jon <email@hidden>)
 >Re: main nib, firing a secondary nib and it's controller.... (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Bundle is not using icon or CFBundleIdentifier
  • Next by Date: Re: whether to use core data...
  • Previous by thread: Re: main nib, firing a secondary nib and it's controller....
  • Next by thread: Working with an Unsupported Character Encoding (ANSEL)
  • Index(es):
    • Date
    • Thread