SHARE
TWEET

Detecting when a User takes a Screenshot (Header File)

a guest Dec 23rd, 2010 73 Never
  1. #import <Cocoa/Cocoa.h>
  2.  
  3. @interface YouAppDelegate : NSObject <NSApplicationDelegate> {
  4.        
  5.         BOOL shouldObserveDesktop;
  6.         NSDictionary *knownScreenshotsOnDesktop;
  7.         NSString *screenshotLocation;
  8.         NSString *screenshotFilenameSuffix;
  9.        
  10. }
  11.  
  12. - (void)startObservingDesktop;
  13. - (void)stopObservingDesktop;
  14. - (NSDictionary *)screenshotsOnDesktop;
  15. - (NSDictionary *)screenshotsAtPath:(NSString *)dirpath modifiedAfterDate:(NSDate *)lmod;
  16. - (void)checkForScreenshotsAtPath:(NSString *)dirpath;
  17. - (NSDictionary *)findUnprocessedScreenshotsOnDesktop;
  18.  
  19. @end
RAW Paste Data
Top