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