Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between "Multiple" and "Single" for View Controller Presentation?

I've been working on an OS X app in Xcode. An option that completely perplexes me is "Presentation", with the two options "Single" and "Multiple" what does this attribute do?

enter image description here

like image 810
Andrew Theken Avatar asked May 31 '15 22:05

Andrew Theken


1 Answers

So, this was actually "obvious" once I used it.

Basically, this feature causes a window to be displayed once, or multiple times if the corresponding segue in a storyboard has been triggered multiple times.

To see this in action, add a create a storyboard with a view controller in it. The place a button on the view, and an additional window controller. Create a segue between the button and the window controller to "show" the window controller.

Click on the window controller and toggle between the two Presentation options. When you run it, you will find that one case will create multiple instances of the window, while the other will create a single instance of the window.

Like I said, obvious, but had to actually use it to figure it out.

like image 186
Andrew Theken Avatar answered Nov 03 '22 17:11

Andrew Theken