Can I use NSPopover in Xcode 6 and storyboard?

I tried using NSPopoverits view controller in my Cocoa application, but found that it was not available in Xcode 6 and storyboard environments. I used it in my Cocoa application on Xcode 5.x. I can also use it in a project that was originally created under Xcode 6, but use nib and not use the storyboard. However, a new project created in Xcode 6 with storyboard enabled cannot be found NSPopoverin the object library.

So, how can I use NSPopover and its view controller in an Xcode 6 project under a storyboard?

+4
source share
1 answer

You create a general view controller, and then add a one-way popover type connection to it from one or more controls.

+3
source

Source: https://habr.com/ru/post/1544839/


All Articles