Better debugging

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13370 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-04-06 04:49:53 +00:00
parent 245f39e232
commit 738d7563ed
3 changed files with 15 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2002-04-05 Adam Fedor <fedor@gnu.org>
* Source/NSApplication.m (initialize_gnustep_backend): Better
debugging info.
* Source/NSPrintOperation.m ([NSPrintOperation -destroyContext]):
Remove old context method.
2002-04-06 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
* Source/NSOutlineView.m ([NSOutlineView -performDragOperation:]):

View file

@ -189,17 +189,19 @@ initialize_gnustep_backend(void)
break;
path = nil;
}
NSCAssert(path != nil,
GSGuiLocalizedString (@"Unable to load backend, aborting",
nil));
NSCAssert1(path != nil,
GSGuiLocalizedString (@"Unable to load backend %@",
nil), bundleName);
NSDebugLog(@"Loading Backend from %@", path);
NSDebugFLLog(@"BackendBundle", @"Loading Backend from %@", path);
theBundle = [NSBundle bundleWithPath: path];
NSCAssert(theBundle != nil,
GSGuiLocalizedString (@"Can't init backend bundle", nil));
NSCAssert1(theBundle != nil,
GSGuiLocalizedString (@"Can't init backend bundle %@", nil),
path);
backend = [theBundle classNamed: @"GSBackend"];
NSCAssert(backend,
GSGuiLocalizedString (@"Can't load backend bundle", nil));
GSGuiLocalizedString (@"Can't load backend class", nil));
[backend initializeBackend];
}
#else

View file

@ -399,7 +399,6 @@ static NSString *NSPrintOperationThreadKey = @"NSPrintOperationThreadKey";
*/
- (void)destroyContext
{
[_context destroyContext];
DESTROY(_context);
}