Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Detecting when a User takes a Screenshot (Header File)

By: a guest on Dec 23rd, 2010  |  syntax: Objective C  |  size: 0.54 KB  |  views: 57  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data