NSStoryboard’s Quirks and Features

Ilya Kulakov
1 min readAug 1, 2019

Storyboards are ill suited for parent-child connections. Only builtin container controllers, such as NSTabViewController, allow them with very few customizable options. Custom segues invoked from code can still be used to encapsulate transitions between child view controllers.

When loaded from a storyboard NSTabViewController, contrary to the documentation, loads all its children and their views.

Controller-less views (such as Main Menu and Status Item Menu) use NSApp’s delegate as a source controller. It can implement any of the NSSeguePerforming protocol methods.

It’s pointless to connect multiple builtin segues to the same Single-presenting controller: once it’s displayed nor segue nor any of the NSSeguePerforming are called. In other hand, custom segues are completly oblivious of that setting and are always performed.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Ilya Kulakov
Ilya Kulakov

Written by Ilya Kulakov

Tech Entrepreneur and Quality Freak with passion.

No responses yet

Write a response