OSX add application menu (file/edit/view...) to app manually - swift

I'm building a OSX app and I noticed it has no "application menu" (the top left file/edit/view menu), I can't seem to find much about this other than it should be added automatically. How can I add it manually and add or remove items?
I can click it but no menu opens.

Related

New tab button - UIWindowScene and macOS Catalyst

Is it possible to add a "New Tab" button to the tabBar, like Safari and Finder has? My app is a Mac Catalyst app and has support for multiple windows, but to open new windows the user has to select it from the menu bar or use keyboard shortcuts.
The idea is to have this built-in Tab Bar work much like https://github.com/stuffmc/TabbedViews does.
.
The built-in one has:
No + button (and no New Tab menu either)
Only the option to display the full display of a window. This one can display the Tab Bar anywhere, and especially also on iOS.
This one though has no support yet for Move Tab to New Window and of course one need not to forget to remove Merge All Windows, otherwise both will conflict.

Xcode 11 pin menu for Auto Layout is missing (under Main.storyboard) - only on this project

Xcode 11 is missing the Pin menu for Auto sizing on the lower right of the screen - same line as the device emulator name display.
Recent backups have the same problem. Backup from two weeks ago, for this project, show the Pin menu for Auto layout, but prefer not to go that far back.
I looked at the Main.layout file in the text editor saw nothing interesting, but I have no knowledge what it should look like,
I Used Terminal command: spctl --assess --verbose /Applications/Xcode.app
It shows I have a valid version of Xcode.
Stackoverflow has answers on this problem from several versions ago, that do not work with current xcode 11.2.1.
It is a Swift, iPhone + Apple Watch project.
The solution: Check the box for "Use Auto Layout" in the file inspector. 1) Click on the Main.storyboard., 1) Right-click on the Main.storyboard. 2) Click on "Show File Inspector" This may or may not show you the "Interface Builder Document". It should bring up your right Pane if it was closed. 3) Click on one of the controls on your story board, this should bring up the "Use Auto Layout" if it was not already displayed. 4) Check the "Use Auto Layout". You should now have your Pin Auto Layout buttons.

GNAT GPS Project Explorer View is Missing

I am using GNAT GPS version 6.0.1 in Windows 7. For some unknown reason, the Project View pane that is on the left side of the main window has disappeared when I use the debugger. I can't find any menu or preference options that control whether this pane is visible.
Update--
I should point out that this is the pane with the tabs along the left side rather than along the top. I can show a similar pane with projects listed by splitting the main window, but its tabs are along the top. Also, Its behavior is different form the one with tabs on the left side. Double-clicking on a file name, for example, should open the file in the main window. Using a split window. this opens the file in the window that is showing the projects.
End of Update --
I can select Project -> Project View from the toolbar, and I get a Project View as one tab in the main window (along with the source files that I am working with).
Can someone tell me how to control whether the left-hand pane is visible and how to make sure the Project View has a tab in that pane?
Also, when I look at Window -> Perspective, I see that the Default perspective is selected when I'm not using the debugger and the Debug perspective is selected when I am using the debugger. Switching from the Debug perspective to the Default perspective while I am running the debugger does bring back the left-hand pane, but my debug tab and the Debugger Data window disappear. Can I fix the Debug perspective so the left-hand pane is part of its configuration by deffault?
By the way, in this version, there is no Show View option in the toolbar menus.
This can be opened with /Project/Project View or /Tools/Views/Project.
To put the tabs to the left instead of the top, right click on the tab and select the Tabs Location item. You can also use drag-and-drop (from a tab) to move windows around, in particular to move the Project view to the left of your desktop.
That said, the simplest might be to remove the file $HOME/.gps/perspectives6.xml to restart from the default desktop.

How to unhide an Eclipse working set?

How do I unhide a working set in Eclipse?
I'm using Eclipse and I'm trying to organize my projects into working sets. When I was deleting one of my working set folders (by pressing the delete key on the working set), two options appeared: remove or hide. I clicked on hide but now I want to unhide this folder - how can I do that?
I assume you were in the Package or Project Explorer view when you pressed delete.
Click the small down arrow (3 vertical dots in newer versions of Eclipse) at the top right of the view to show the view menu.
In Package Explorer select Configure Working Sets to show a dialog which will let you re-enable the working set. In Project Explorer the option is Select Working Set.

Adding OCUnit to excisting project in XCode

I am trying to add OCUnit to a excisting XCode project however I am not able to run it. The "Test" row in the "Product" menu is gray after following this guide. Anyone having another tutorial or know how to that? Or other solutions.
You have to edit the scheme for the application target to enable the Test item in the Product menu. To open the scheme editor, click on the Scheme menu in the project window toolbar and choose Edit Scheme. Select the Test step on the left side of the scheme editor. The list of tests should be empty. Click the + button to open a target sheet. Select the unit testing target from the list and click the Add button.