From fb7f3b833d31cb7dcae259c6a9a0118cdeafc96c Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 16 Sep 2023 16:21:49 +0200 Subject: Make a document-based application 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. --- Info.plist | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Info.plist') diff --git a/Info.plist b/Info.plist index e1b9e8c..6a6eedd 100644 --- a/Info.plist +++ b/Info.plist @@ -24,5 +24,19 @@ 10.12 NSHumanReadableCopyright Copyright © 2023 Teddy Wing + + CFBundleDocumentTypes + + + CFBundleTypeRole + Editor + LSItemContentTypes + + public.plain-text + + NSDocumentClass + Document + + -- cgit v1.2.3