aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2023-08-15MainMenu: Add Services menu to Application menuTeddy Wing
2023-08-15MainMenu: Set "Quit" target to `NSApp`Teddy Wing
It seemed to work without this, but I figure it's better to be more explicit.
2023-08-15MainMenu: Make "Hide" and "Hide Others" menu items workTeddy Wing
2023-08-15MainMenu: Add application name to application menu itemsTeddy Wing
The About, Hide, and Quit menu items all include the application name in their titles.
2023-08-15MainMenu: Add Application menu itemsTeddy Wing
These don't work yet, but this is the default list in a Cocoa application created with Xcode.
2023-08-15MainMenu: Switch `about_menu_item` to non-local allocationTeddy Wing
Found out there's an `addItemWithTitle:action:keyEquivalent:` in `NSMenu` that allows us to skip allocating the menu item ourselves.
2023-08-15MainMenu.m: Add "About" menu itemTeddy Wing
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.