Re: How to instantiate WindowController in xib
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