• 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: How to instantiate WindowController in xib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to instantiate WindowController in xib


  • Subject: Re: How to instantiate WindowController in xib
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 22 Nov 2016 08:19:16 -0600

Can't you get the file name from the bundle?

How are you getting the file name for the XIB?

On Nov 21, 2016, at 10:42 PM, Gerriet M. Denkmann wrote:

> My MainMenu.xib has an Object of class MainWindowController ← NSWindowController.
>
> The AppDelegate has a reference to this (mainWindowController).
>
> But
> - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
> {
> 	NSLog(@"mainWindowController %@ windowNibName %@ windowNibPath %@",
> 		self.mainWindowController, self.mainWindowController.windowNibName,
> 		self.mainWindowController.windowNibPath);
> }
>
> prints:
> windowNibName = nil
> windowNibPath = some totally unrelated xib file
>
> How to tell Xcode the WindowNibName to use ?
>
> Gerriet.
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >How to instantiate WindowController in xib (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: AutoSave for Windows
  • Next by Date: Re: How to instantiate WindowController in xib
  • Previous by thread: How to instantiate WindowController in xib
  • Next by thread: Re: How to instantiate WindowController in xib
  • Index(es):
    • Date
    • Thread