Re: How to instantiate WindowController in xib
Re: How to instantiate WindowController in xib
- Subject: Re: How to instantiate WindowController in xib
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 23 Nov 2016 01:20:27 +0700
> On 23 Nov 2016, at 01:02,Andy Lee <email@hidden> wrote:
>
>
> 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.
This is very good to know. I had the feeling that this should be possible in Xcode.
In my case I had to subclass NSWindowController anyway.
But this will be really useful where this is not the case.
Thank you very much for this hint!
Kind regards,
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