aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2023-08-14MainMenu.m: Add structure for menusTeddy Wing
Add functions that will create the menus in the application.
2023-08-14main: Release AppDelegateTeddy Wing
Forgot this when I added it.
2023-08-14Move main_menu.{h,m} to MainMenu.{h,m}Teddy Wing
Decided to use Core Foundation naming conventions here instead of C-style lowercase. It seems to fit better with the Objective-C code.
2023-08-14Move application menu bar code to a new fileTeddy Wing
Put the menu code in its own file to keep it more organised. We're also going to be adding a lot more code here for the base main menu. Wasn't sure if I should be releasing these menu objects, but it looks like the application works when I do release them, so maybe `setMainMenu` does a retain or copy. I can't decide if I should use C-style identifiers or Foundation-style in the menu file.
2023-08-14Add an NSApplicationDelegateTeddy Wing
Move the window creation to a separate class, and also allow us to take advantage of `NSApplicationDelegate` protocol methods.
2023-08-14Simple windowed applicationTeddy Wing
Create a simple windowed Cocoa application with an application menu and a "Quit" menu item.