Skip to content

Commit

Permalink
koekeishiya#589 get rid of osax Loader class definition
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya authored and unrevre committed Sep 23, 2020
1 parent f14be6e commit f289e37
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/osax/loader.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@
#import <Foundation/Foundation.h>
#import "common.h"

@interface Loader : NSObject
@end

@implementation Loader
@end

static Class _instance;

OSErr yabai_osax_load(const AppleEvent *event, AppleEvent *reply, long context)
{
NSLog(@"[yabai] attempting to load scripting addition..");

OSErr result = OSAX_PAYLOAD_SUCCESS;
NSBundle* loader_bundle = [NSBundle bundleForClass:[Loader class]];
NSBundle *loader_bundle = [NSBundle bundleWithIdentifier:@"com.koekeishiya.yabai-osax"];
NSString *payload_path = [loader_bundle pathForResource:@"payload" ofType:@"bundle"];
NSBundle *payload_bundle = [NSBundle bundleWithPath:payload_path];

Expand Down

0 comments on commit f289e37

Please sign in to comment.