URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=15782>
Summary: ProjectCenter, Win32, crashes when double-clicking
source in Project Browser
Project: GNUstep
Submitted by: awe
Submitted on: Fri 02/17/06 at 13:28
Category: Application
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
Environment:
- GNUstep Windows binaries for base 1.11.1 and gui 0.10.1
- ProjectCenter v0.4.3
ProjectCenter throws an exception if you try to edit any source file by
double clicking it in the Project Browser panel.
Exception message:
Critical Error in ProjectCenter.exe
NSRangeException: Index 0 is out of range 0 (in 'removeObjectAtIndex:').
The crash happens in Library/PCProjectEditor.m:
- (PCEditor *)editorForFile:(NSString *)path
categoryPath:(NSString *)categoryPath
windowed:(BOOL)yn
{
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
NSString *ed = [ud objectForKey:Editor];
PCEditor *editor;
if (![ed isEqualToString:@"ProjectCenter"])
//Dirty FIX: if (ed != nil && ![ed isEqualToString:@"ProjectCenter"])
{
editor = [[PCEditor alloc] initExternalEditor:ed
withPath:path
projectEditor:self];
return editor;
}
//...
}
[ud objectForKey:Editor] returns nil altough it is set in the
PCPrefController method -setDefaultValues via the NSUserDefaults method
-setPersistentDomain:forName:. Everything is fine if I add [ud
setObject:@"ProjectCenter" forKey:Editor]; to -setDefaultValues in
PCPrefController. It seems that it is not a bug in ProjectCenter itself but
in the Win32 backend.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=15782>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep