Changeset 3924

Show
Ignore:
Timestamp:
03/19/06 11:19:40 (3 years ago)
Author:
morris
Message:

NSURL is such a fucking bitch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredAdditions/trunk/WIURL.m

    r3890 r3924  
    341341 
    342342- (NSURL *)URL { 
    343         NSString                *path; 
    344          
    345343        if([self isFileURL]) 
    346344                return [NSURL fileURLWithPath:[self path]]; 
    347345 
    348         path = [self path]; 
    349          
    350         if(!path) 
    351                 path = @"/"; 
    352          
    353         return [[[NSURL alloc] initWithScheme:[self scheme] host:[self hostpair] path:path] autorelease]; 
     346        return [NSURL URLWithString:[self string]]; 
    354347} 
    355348