PackagedDocument/ViewController.h

/*
 Copyright (C) 2017 Apple Inc. All Rights Reserved.
 See LICENSE.txt for this sample’s licensing information
 
 Abstract:
 Primary NSViewController content for our document window.
 */
 
#import <Cocoa/Cocoa.h>
 
@protocol ViewControllerDelegate;
 
@interface ViewController : NSViewController <NSTextDelegate>
 
@property (assign) IBOutlet NSTextView *textView;
@property (assign) BOOL disclosed;
@property (weak) id<ViewControllerDelegate> delegate;
 
- (void)updateImage:(NSImage *)image;
 
@end
 
@protocol ViewControllerDelegate <NSObject>
 
@required
- (void)viewController:(ViewController *)viewController didDiscloseImage:(BOOL)disclosedImage;
 
@end