diff options
author | Teddy Wing | 2023-09-25 01:42:36 +0200 |
---|---|---|
committer | Teddy Wing | 2023-09-25 01:42:36 +0200 |
commit | 4157ed88b241631b194046692bbf0e4464e839e8 (patch) | |
tree | 9f79ebbc7969c248cf1a2d5bfe37a6f706743ea2 /src/Document.h | |
parent | d62c07399f546969e04541efa853ee4b882ec9bf (diff) | |
download | Base-Windowed-Application-4157ed88b241631b194046692bbf0e4464e839e8.tar.bz2 |
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
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <Cocoa/Cocoa.h> @interface Document : NSDocument +{ + NSTextField *_label; +} @end |