[sourcecode language="ObjC"][/sourcecode]
NSString *strUrl = @"http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSRecursiveLock_Class/Reference/Reference.html";
NSURL *url = [NSURL URLWithString:strUrl];
NSLog(@"absoluteString->%@",[url absoluteURL]);
NSLog(@"absoluteURL->%@",[url absoluteURL]);
NSLog(@"baseURL->%@",[url baseURL]);
NSLog(@"fragment->%@",[url fragment]);
NSLog(@"host->%@",[url host]);
NSLog(@"lastPathComponent->%@",[url lastPathComponent]);
NSLog(@"parameterString->%@",[url parameterString]);
NSLog(@"password->%@",[url password]);
NSLog(@"path->%@",[url path]);
NSLog(@"pathComponents->%@",[url pathComponents]);
NSLog(@"pathExtension->%@",[url pathExtension]);
NSLog(@"port->%@",[url port]);
NSLog(@"query->%@",[url query]);
NSLog(@"relativePath->%@",[url relativePath]);
NSLog(@"relativeString->%@",[url relativeString]);
NSLog(@"resourceSpecifier->%@",[url resourceSpecifier]);
NSLog(@"scheme->%@",[url scheme]);
NSLog(@"standardizedURL->%@",[url standardizedURL]);
NSLog(@"user->%@",[url user]);
[sourcecode][/sourcecode]