aboutsummaryrefslogtreecommitdiffstats
path: root/src/Document.h
AgeCommit message (Collapse)Author
2023-09-30Switch to the 0BSD licenseTeddy Wing
Since this is intended to be template code upon which to build a full application, I didn't like that the prior license required the full license text to be reproduced in distributions. I want the code to be a base for developers to use when starting a Cocoa application, like the template code that's generated in a new Xcode project. As such, I want people to be allowed to remove my license when distributing the code.
2023-09-30Add license (primarily BSD-3-Clause)Teddy Wing
Set a BSD-3-Clause license on all the application code so that it can be freely used as a base template for an application. Use the GNU GPLv3+ for the log script as it's a helper utility that isn't compiled into the application.
2023-09-25Document: Add placeholder labelTeddy Wing
Add a "Your document contents here" label to the center of the NSDocument window similar to the one that Xcode's document-based app template. Took inspiration from this Stack Overflow answer to get the center point of the window's content view: https://stackoverflow.com/questions/6560842/getting-the-center-point-of-an-nsview/14811056#14811056
2023-09-16Make a document-based applicationTeddy Wing
Add the basic necessities for a document-based application. This is what I came up with on 2023-09-10. The `DocumentWindowController` was just an initial idea and doesn't do anything: we create the required window controller in `Document`. The `CFBundleDocumentTypes` entry enables us to interact with text files. This confirms that the "Open Recent" menu does get added automatically below the "Open" menu.