Advertisement
Guest User

123

a guest
May 17th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (instancetype)init {
  2.     self = [super init];
  3.     NSLog(@"%s launched from %@ ; compiled at %s", __PRETTY_FUNCTION__, [[NSBundle mainBundle] bundlePath], __TIME__);
  4.     pict = [[NSImage alloc]initWithContentsOfFile:@"/Users/tsukanov/dev/finder-extension/test3/calendar.png"];
  5.     if (pict == nil) {
  6.         NSLog(@"image nil");
  7.     }
  8.     NSLog(@"%f and %f",pict.size.width, pict.size.height);
  9.    
  10.     // Set up the directory we are syncing.
  11.     self.myFolderURL = [NSURL fileURLWithPath:@"/Users/tsukanov/dev/finder-extension/fs-test-doc"];
  12.     [FIFinderSyncController defaultController].directoryURLs = [NSSet setWithObject:self.myFolderURL];
  13.  
  14.     // Set up images for our badge identifiers. For demonstration purposes, this uses off-the-shelf images.
  15.     [[FIFinderSyncController defaultController] setBadgeImage:[NSImage imageNamed: @"bobo"] label:@"Status One" forBadgeIdentifier:@"One"];
  16.     [[FIFinderSyncController defaultController] setBadgeImage:[NSImage imageNamed: @"calendar"] label:@"Status Two" forBadgeIdentifier:@"Two"];
  17.     return self;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement