This repository has been archived by the owner on Oct 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backported all Balance Open functionality to Balance. THERE CAN BE ON…
…LY ONE!
- Loading branch information
1 parent
fa7013c
commit 71c7c90
Showing
1,354 changed files
with
487,436 additions
and
10,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Carthage/* linguist-vendored | ||
Balance/Shared/Frameworks/* linguist-vendored | ||
Balance/macOS/Frameworks/* linguist-vendored | ||
Balance/iOS/Frameworks/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
language: objective-c | ||
osx_image: xcode7.3 | ||
before_install: | ||
- brew update | ||
- brew outdated xctool || brew upgrade xctool | ||
- brew outdated carthage || brew upgrade carthage | ||
- carthage bootstrap --platform OSX | ||
script: | ||
- xctool -project Bal.xcodeproj -scheme Balance -sdk macosx10.11 -configuration Release CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// AppDelegate.h | ||
// Bal | ||
// | ||
// Created by Benjamin Baron on 12/15/16. | ||
// Copyright © 2016 Balanced Software, Inc. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
@interface AppDelegate : NSObject<NSApplicationDelegate> | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// AppDelegate.m | ||
// Bal | ||
// | ||
// Created by Benjamin Baron on 12/15/16. | ||
// Copyright © 2016 Balanced Software, Inc. All rights reserved. | ||
// | ||
|
||
#import "AppDelegate.h" | ||
|
||
#define mainAppId @"software.balanced.balancemac" | ||
|
||
@implementation AppDelegate | ||
|
||
- (void)applicationDidFinishLaunching:(NSNotification *)notification { | ||
// Check if main app is already running | ||
BOOL alreadyRunning = NO; | ||
NSArray *runningApplications = [[NSWorkspace sharedWorkspace] runningApplications]; | ||
for (NSRunningApplication *app in runningApplications) { | ||
if ([app.bundleIdentifier isEqualToString:mainAppId]) { | ||
alreadyRunning = YES; | ||
break; | ||
} | ||
} | ||
|
||
NSLog(@"Balance helper alreadyRunning: %i", alreadyRunning); | ||
if (!alreadyRunning) { | ||
// Calculate the path to Balance | ||
NSArray *pathComponents = [[[NSBundle mainBundle] bundleURL] pathComponents]; | ||
NSMutableArray *subComponents = [[pathComponents subarrayWithRange:NSMakeRange(0, pathComponents.count - 3)] mutableCopy]; | ||
[subComponents addObject:@"MacOS"]; | ||
[subComponents addObject:@"Balance"]; | ||
NSString *path = [NSString pathWithComponents:subComponents]; | ||
NSLog(@"Balance helper launching Balance at path: %@", path); | ||
|
||
// Launch Balance | ||
[[NSWorkspace sharedWorkspace] launchApplication:path]; | ||
|
||
// Terminate after 10 seconds | ||
sleep(10); | ||
[NSApp terminate:nil]; | ||
} | ||
} | ||
|
||
@end |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict/> | ||
</plist> |
Oops, something went wrong.