Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loading main interface programmatically?

There is default main interface setting in Xcode-

enter image description here

How can I change the default main interface storyboard programmatically for mac OS X app?

like image 970
Abhishek Avatar asked Jul 23 '26 08:07

Abhishek


1 Answers

The basic answer: You don't. This is set in your app bundle's Info.plist, which can't be modified at runtime (well, it can, if you have write permissions, but then you'd need to re-launch under those settings anyway).

What you could do is use the (deleted) answers before mine that suggested loading additional storyboards at launch time (see NSApplicationDelegate protocol vs. UIApplicationDelegate for Mac).

like image 133
Joshua Nozzi Avatar answered Jul 25 '26 02:07

Joshua Nozzi