Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 284
Xiao Xiao Avatar asked Dec 19 '22 11:12

Xiao Xiao


1 Answers

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.

like image 156
DDP Avatar answered Jan 19 '23 08:01

DDP