简体   繁体   中英

NSPanel removed in Xcode 8?

In the past I can find Panel available in Interface Builder's Library, but in Xcode 8, I searched the whole library in storyboard editor, no Panel available. Has Apple just removed NSPanel or I got something wrong?

Assuming you want to add a second window (as a panel) to your storyboard, add a new window controller . Then select its window and change its class to NSPanel . In the attributes inspector you will find that your panel can then be changed to regular , utility or HUD .

For Cocoa apps, I find that Nibs/Xibs are sometimes easier to work with than storyboards.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM