Re: Converting a Storyboard into separate NIBs.
Re: Converting a Storyboard into separate NIBs.
- Subject: Re: Converting a Storyboard into separate NIBs.
- From: Charles Srstka <email@hidden>
- Date: Mon, 19 Jun 2017 15:25:03 -0500
> On Jun 19, 2017, at 2:51 PM, Alex Zavatone <email@hidden> wrote:
>
> What is EXCELLENT is when you take the storyboard and remove all the top
> level views. Then, create individual XIBs for each scene. The
> viewController.h specifies that “if a view can not be found, an .xib with the
> same name of the class file will be looked for and will be loaded if found.”
> I’ve seen this text in the viewController.h since 2009, if I recall
> correctly, so it’s not due to change any time soon.
Keep in mind that according to the documentation, this is only true of macOS
10.10 and higher. So if you are targeting 10.9 or below, you cannot do this
(although it’s fairly trivial to write one’s own general NSViewController
subclass that does this, as I did for many years before the built-in
functionality was introduced).
Charles
_______________________________________________
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