Changeset 2958

Show
Ignore:
Timestamp:
06/17/05 22:26:31 (4 years ago)
Author:
morris
Message:

Add -URLByDeletingLastPathComponent

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ZankaAdditions/trunk/ZAURL.h

    r1629 r2958  
    4646- (NSString *)string; 
    4747- (NSString *)humanReadableString; 
     48- (ZAURL *)URLByDeletingLastPathComponent; 
    4849- (NSURL *)URL; 
    4950- (BOOL)isFileURL; 
  • ZankaAdditions/trunk/ZAURL.m

    r2922 r2958  
    320320 
    321321 
     322- (ZAURL *)URLByDeletingLastPathComponent { 
     323        ZAURL   *url; 
     324 
     325        url = [self copy]; 
     326        [url setPath:[[url path] stringByDeletingLastPathComponent]]; 
     327 
     328 
     329        return [url autorelease]; 
     330} 
     331 
     332 
     333 
    322334- (NSURL *)URL { 
    323335        return [NSURL URLWithString:[self string]];