mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-18 16:41:35 +00:00
The build tool can now be customised. Make sure to enter a valid path in the
inspector field! git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@11952 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0dbee7d4b5
commit
9d2387f4bf
2 changed files with 21 additions and 7 deletions
|
@ -276,7 +276,7 @@
|
|||
toolField =[[NSTextField alloc] initWithFrame:NSMakeRect(84,256,176,21)];
|
||||
[toolField setAlignment: NSLeftTextAlignment];
|
||||
[toolField setBordered: YES];
|
||||
[toolField setEditable: NO];
|
||||
[toolField setEditable: YES];
|
||||
[toolField setBezeled: YES];
|
||||
[toolField setDrawsBackground: YES];
|
||||
[toolField setStringValue:@""];
|
||||
|
@ -962,6 +962,13 @@
|
|||
else if ( sender == toolField )
|
||||
{
|
||||
[projectDict setObject:newEntry forKey:PCBuildTool];
|
||||
|
||||
if( ![[NSFileManager defaultManager] isExecutableFileAtPath:newEntry] )
|
||||
{
|
||||
NSRunAlertPanel(@"Build Tool Error!",
|
||||
@"No valid executable found at '%@'!",
|
||||
@"OK",nil,nil,newEntry);
|
||||
}
|
||||
}
|
||||
else if ( sender == ccOptField )
|
||||
{
|
||||
|
|
|
@ -280,13 +280,20 @@
|
|||
|
||||
- (id)initWithProject:(PCProject *)aProject
|
||||
{
|
||||
NSAssert(aProject,@"No project specified!");
|
||||
NSAssert(aProject,@"No project specified!");
|
||||
|
||||
if ((self = [super init])) {
|
||||
makePath = [[NSString stringWithString:@"/usr/bin/make"] retain];
|
||||
currentProject = aProject;
|
||||
}
|
||||
return self;
|
||||
if ((self = [super init])) {
|
||||
makePath = [[aProject projectDict] objectForKey:PCBuildTool];
|
||||
|
||||
if( [makePath isEqualToString:@""] )
|
||||
{
|
||||
makePath = [NSString stringWithString:@"/usr/bin/make"];
|
||||
}
|
||||
|
||||
RETAIN(makePath);
|
||||
currentProject = aProject;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
|
|
Loading…
Reference in a new issue