Minor debug improvment

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22370 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2006-01-27 10:31:06 +00:00
parent b016fae97a
commit bf46c0c5e3
2 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2006-01-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSDistributedLock.m: ([description]) implemented
2006-01-20 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSAutoreleasePool.m: ([addObject:]) fix error in check for

View file

@ -96,6 +96,20 @@ static NSFileManager *mgr = nil;
[super dealloc];
}
- (NSString*) description
{
if (_lockTime == nil)
{
return [[super description] stringByAppendingFormat:
@" path '%@' not locked", _lockPath];
}
else
{
return [[super description] stringByAppendingFormat:
@" path '%@' locked at %@", _lockPath, _lockTime];
}
}
/**
* Initialises the receiver with the specified filesystem path.<br />
* The location in the filesystem must be accessible for this