aboutsummaryrefslogtreecommitdiffstats
path: root/src/AppDelegate.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-29AppDelegate: Use consistent brace formatTeddy Wing
Match the brace format from "Document.h".
2023-09-09Clean up "Find" menu testsTeddy Wing
* Remove the `NSTextFinder` code as it's not necessary to get a find bar for an `NSTextView`. * Remove the commented notes for the "Find" menu.
2023-09-09AppDelegate: Add NSTextFinder find barTeddy Wing
Add a find bar leveraging NSTextFinder. It turns out I didn't need to do anything custom with `NSTextFinder` since `NSTextView` conveniently already has a `usesFindBar` property to turn on built-in support for it. I discovered that by looking at the TextEdit source code available here: https://developer.apple.com/library/archive/samplecode/TextEdit/Introduction/Intro.html I added an `NSScrollView` because you kind of need one to implement `NSTextFinder`. Not sure if the finding functionality would still work without the scroll view. Also use the proper `-performTextFinderAction:` selector for the "Find…" menu item to open the find bar. Now we can confirm that the "Find" menu items work correctly.
2023-08-16AppDelegate: Add an NSTextView to test Edit menuTeddy Wing
Most options seem to work, except for Undo, Redo, and the Find commands.
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.