- Joined
- Jul 2, 2013
- Messages
- 653
- Reaction score
- 12
- Points
- 18
- Location
- southern Arizona
- Your Mac's Specs
- 2018 MacBook Pro, 15", i9, 32GB RAM, Monterey
I am a retired and decided to spend some of my time learning Xcode, Objective-c and Swift and writing some apps for my own use at home. I had been developing apps for Windows using Visual Studio and (mostly) c, c# and c++ and thought Xcode and Swift would not be too much of a problem. Mostly this has worked and I have been able to develop the apps I wanted using the UI builder in Xcode (rather than in code itself). However, since most of these are relatively simple and straight-forward they have not required menus and so up until this week I never tried to attach a menu to the apps.
However, this week I decided to combine some of my apps into a single general purpose app and wanted to attach a menu, but can not see how to include the menu in the app. I have tried everything I can think of, trying to drag the menu to the app, creating Outlets and Actions in the code for the menu, modifying the menu, adding and deleting entries, but nothing serves to add the menu to the app and I get the single simple app window with no menus.
I have searched the internet for a solution, but without luck. I thought I might just buy one of the Xcode books available in Kindle form, but most of those seem to be aimed at teaching Objective-c or Swift, or are written for much earlier versions of Xcode. Can someone please tell me how to get Xcode to attach the menu bar to the app? Nothing I have tried so far has worked and I assume there is some simple setting or drag operation that would solve this problem. These are OS X apps, not iOS, in case that makes a difference.
Thank you.
UPDATE:
Never mind. Figured it out.
However, this week I decided to combine some of my apps into a single general purpose app and wanted to attach a menu, but can not see how to include the menu in the app. I have tried everything I can think of, trying to drag the menu to the app, creating Outlets and Actions in the code for the menu, modifying the menu, adding and deleting entries, but nothing serves to add the menu to the app and I get the single simple app window with no menus.
I have searched the internet for a solution, but without luck. I thought I might just buy one of the Xcode books available in Kindle form, but most of those seem to be aimed at teaching Objective-c or Swift, or are written for much earlier versions of Xcode. Can someone please tell me how to get Xcode to attach the menu bar to the app? Nothing I have tried so far has worked and I assume there is some simple setting or drag operation that would solve this problem. These are OS X apps, not iOS, in case that makes a difference.
Thank you.
UPDATE:
Never mind. Figured it out.
Last edited: