diff --git a/ChangeLog b/ChangeLog index 49b06abb0..6aff6ce99 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-01-27 Richard Frith-Macdonald + + * Source/NSDistributedLock.m: ([description]) implemented + 2006-01-20 Richard Frith-Macdonald * Source/NSAutoreleasePool.m: ([addObject:]) fix error in check for diff --git a/Source/NSDistributedLock.m b/Source/NSDistributedLock.m index f9ce09b6b..004f2647a 100644 --- a/Source/NSDistributedLock.m +++ b/Source/NSDistributedLock.m @@ -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.
* The location in the filesystem must be accessible for this