Changeset 3874

Show
Ignore:
Timestamp:
03/04/06 17:55:53 (3 years ago)
Author:
morris
Message:

Better WIURL -> NSURL conversion

Files:

Legend:

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

    r3705 r3874  
    342342 
    343343- (NSURL *)URL { 
    344         return [NSURL URLWithString:[self string]]; 
     344        if([self isFileURL]) 
     345                return [NSURL fileURLWithPath:[self path]]; 
     346 
     347        return [[[NSURL alloc] initWithScheme:[self scheme] host:[self hostpair] path:[self path]] autorelease]; 
    345348} 
    346349