Age | Commit message (Collapse) | Author |
|
|
|
It seemed to work without this, but I figure it's better to be more
explicit.
|
|
|
|
The About, Hide, and Quit menu items all include the application name in
their titles.
|
|
These don't work yet, but this is the default list in a Cocoa
application created with Xcode.
|
|
Found out there's an `addItemWithTitle:action:keyEquivalent:` in
`NSMenu` that allows us to skip allocating the menu item ourselves.
|
|
|
|
Add functions that will create the menus in the application.
|
|
Forgot this when I added it.
|
|
Decided to use Core Foundation naming conventions here instead of
C-style lowercase. It seems to fit better with the Objective-C code.
|
|
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.
|
|
Move the window creation to a separate class, and also allow us to take
advantage of `NSApplicationDelegate` protocol methods.
|
|
Create a simple windowed Cocoa application with an application menu and
a "Quit" menu item.
|