Changeset 517
- Timestamp:
- 03/31/08 17:59:39 (9 months ago)
- Files:
-
- trunk/SapphireFrappliance/NSString-Extensions.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/SapphireFrappliance/NSString-Extensions.m
r515 r517 47 47 if(dirLength>requestedLength) 48 48 { 49 NSLog(@"Directory %@ is %d - req %d",directoryPath, dirLength,requestedLength);50 49 NSRange croppedRange; 51 50 croppedRange.location=dirLength-requestedLength; 52 51 croppedRange.length=requestedLength; 53 returnPath=[NSString stringWithFormat:@" .. /%@/",[NSString pathWithComponents:[[directoryPath pathComponents] subarrayWithRange:croppedRange]]];52 returnPath=[NSString stringWithFormat:@" .../%@",[NSString pathWithComponents:[[directoryPath pathComponents] subarrayWithRange:croppedRange]]]; 54 53 } 55 54 return returnPath;
