• 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: Andy Lee <email@hidden>
  • Date: Tue, 22 Nov 2016 10:40:21 -0500

On Tue, Nov 22, 2016, at 09:45 AM, Stéphane Sudre wrote:
> the windowNibName property should be set by your subclass of NSWindowController (by implementing the - (NSString *) windowNibName; method usually).
>

You can also specify it in IB by going to the Identity Inspector (Command-Option-3 -- the pane where you specify the object's Custom Class) and adding to "User Defined Runtime Attributes", using windowNibName as the key path and the nib name as the value.

One case where you might prefer to do this is if you don't have any other reason to subclass NSWindowController (for example, all the "real" behavior might be in view controllers that live in the window's nib).  IMO this would be a matter of personal taste -- you might prefer to subclass NSWindowController even if it's only to override windowNibName.

--Andy

 _______________________________________________
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


  • Follow-Ups:
    • Re: How to instantiate WindowController in xib
      • From: Alex Zavatone <email@hidden>
References: 
 >How to instantiate WindowController in xib (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: How to instantiate WindowController in xib (From: Stéphane Sudre <email@hidden>)

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