title: NSURL - Set modify path
body: <p>I need to use a <code>NSURL</code> object to reach different ressources on the same host.</p>
  
  <p>Here is what I do:</p>
  
  <pre><code>#define MY_HOST @"my.server.eu"
  NSURL *url = [[NSURL alloc] initWithScheme:@"http" host:MY_HOST path:@"/"];
  </code></pre>
  
  <p>Now I need to deal with</p>
  
  <ul>
  <li><a href="http://my.server.eu/path1" rel="nofollow">http://my.server.eu/path1</a></li>
  <li><a href="http://my.server.eu/path2" rel="nofollow">http://my.server.eu/path2</a></li>
  <li><a href="http://my.server.eu/path3" rel="nofollow">http://my.server.eu/path3</a></li>
  </ul>
  
  <p>How can I modify the path of my <code>NSURL</code> object ?<br>
  Why can't we simply do <code>url.path = @"path1"</code> ?</p>