From 4157ed88b241631b194046692bbf0e4464e839e8 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 25 Sep 2023 01:42:36 +0200 Subject: Document: Add placeholder label 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 --- src/Document.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index e566ac0..e54c71a 100644 --- a/src/Document.h +++ b/src/Document.h @@ -1,4 +1,7 @@ #import @interface Document : NSDocument +{ + NSTextField *_label; +} @end -- cgit v1.2.3