Cocoa - Present NSViewController programmatically
问题 Generally, We can able to display next view controller from first view controller by having different kind of NSStoryboardSeque like Present, Show, Sheet etc., But, How we can achieve the same programmatically?. Comparing with UIViewController, presenting a view controller modally by presentViewController:animated: . Is there any same kind of approach for NSViewController? Thanks in advance. 回答1: The two different presentation types I use are: func presentViewControllerAsModalWindow(_