Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,5 @@ WhitespaceSensitiveMacros:
- NS_SWIFT_NAME
- CF_SWIFT_NAME
...

---
Language: ObjC
16 changes: 7 additions & 9 deletions src/app/Application_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,19 @@

#include "Application.h"
#include "ui/MainWindow.h"
#include <QUrl>
#import <AppKit/AppKit.h>
#include <QUrl>

@interface Launcher : NSObject
- (void)openInGittyup:(NSPasteboard *)pboard
userData:(NSString *)userData
error:(NSString **)error;
userData:(NSString *)userData
error:(NSString **)error;
@end

@implementation Launcher
- (void)openInGitAhead:(NSPasteboard *)pboard
userData:(NSString *)userData
error:(NSString **)error
{
- (void)openInGittyup:(NSPasteboard *)pboard
userData:(NSString *)userData
error:(NSString **)error {
NSArray *classes = [NSArray arrayWithObject:[NSURL class]];
NSDictionary *options = [NSDictionary dictionary];
NSArray *urls = [pboard readObjectsForClasses:classes options:options];
Expand All @@ -32,8 +31,7 @@ - (void)openInGitAhead:(NSPasteboard *)pboard
}
@end

void Application::registerService()
{
void Application::registerService() {
Launcher *launcher = [[Launcher alloc] init];
[[NSApplication sharedApplication] setServicesProvider:launcher];
}
Loading