mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-14 06:31:31 +00:00
Refactor path to executablePath
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@39709 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
94cdea40d3
commit
1efa2a8783
3 changed files with 18 additions and 9 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-05-03 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.h
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.m
|
||||
Refactor path to executablePath.
|
||||
|
||||
2016-03-23 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Debuggers/ProjectCenter/PCDebugger.m
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
** PCDebugger
|
||||
**
|
||||
** Copyright (c) 2008
|
||||
** Copyright (c) 2008-2016
|
||||
**
|
||||
** Author: Gregory Casamento <greg_casamento@yahoo.com>
|
||||
**
|
||||
|
@ -32,10 +32,13 @@
|
|||
id debuggerView;
|
||||
id debuggerWindow;
|
||||
id statusField;
|
||||
NSString *path;
|
||||
NSString *executablePath;
|
||||
NSString *debuggerPath;
|
||||
}
|
||||
|
||||
- (void) setStatus: (NSString *) status;
|
||||
- (NSString *) status;
|
||||
- (NSString *)executablePath;
|
||||
- (void)setExecutablePath:(NSString *)p;
|
||||
|
||||
@end
|
||||
|
|
|
@ -145,7 +145,7 @@ static NSImage *downImage = nil;
|
|||
-(void) debugExecutableAtPath: (NSString *)filePath
|
||||
withDebugger: (NSString *)debugger
|
||||
{
|
||||
ASSIGN(path,filePath);
|
||||
ASSIGN(executablePath,filePath);
|
||||
ASSIGN(debuggerPath,debugger);
|
||||
[debuggerWindow setTitle: [NSString stringWithFormat: @"Debugger (%@)",filePath]];
|
||||
[self show];
|
||||
|
@ -160,8 +160,8 @@ static NSImage *downImage = nil;
|
|||
- (void) startDebugger
|
||||
{
|
||||
[debuggerView runProgram: debuggerPath
|
||||
inCurrentDirectory: [path stringByDeletingLastPathComponent]
|
||||
withArguments: [[NSArray alloc] initWithObjects: @"-f", path, nil]
|
||||
inCurrentDirectory: [executablePath stringByDeletingLastPathComponent]
|
||||
withArguments: [[NSArray alloc] initWithObjects: @"-f", executablePath, nil]
|
||||
logStandardError: YES];
|
||||
}
|
||||
|
||||
|
@ -198,14 +198,14 @@ static NSImage *downImage = nil;
|
|||
debuggerView = view;
|
||||
}
|
||||
|
||||
- (NSString *)path
|
||||
- (NSString *)executablePath
|
||||
{
|
||||
return path;
|
||||
return executablePath;
|
||||
}
|
||||
|
||||
- (void)setPath:(NSString *)p
|
||||
- (void)setExecutablePath:(NSString *)p
|
||||
{
|
||||
ASSIGN(path,p);
|
||||
ASSIGN(executablePath,p);
|
||||
}
|
||||
|
||||
// action methods for toolbar...
|
||||
|
|
Loading…
Reference in a new issue