mirror of
https://github.com/ypresto/SwiftLintXcode.git
synced 2026-03-25 08:55:51 +00:00
22 lines
607 B
Objective-C
22 lines
607 B
Objective-C
//
|
|
// SwiftLintXcodeIDEHelper.m
|
|
// SwiftLintXcode
|
|
//
|
|
// Created by yuya.tanaka on 2016/04/06.
|
|
// Copyright © 2016年 Yuya Tanaka. All rights reserved.
|
|
//
|
|
|
|
#import "SwiftLintXcodeIDEHelper.h"
|
|
#import "SwiftLintXcodeTRVSXcode.h"
|
|
@import Cocoa;
|
|
|
|
@implementation SwiftLintXcodeIDEHelper
|
|
|
|
+ (nullable NSURL *)currentWorkspaceURL
|
|
{
|
|
IDEWorkspaceWindowController *workspaceWindowController = (IDEWorkspaceWindowController *)[[NSApp keyWindow] windowController];
|
|
IDEWorkspace *workspace = [workspaceWindowController valueForKey:@"_workspace"];
|
|
return workspace.representingFilePath.fileURL;
|
|
}
|
|
|
|
@end
|