title: #define URL as string in each .m file?
body: <p>I'm still trying to learn Objective-C and have an app that downloads documents from a web server.
  The documents are in ten, pre-defined folders and I have separate classes for each category</p>
  
  <p>The way I'm accessing the files currently is, at the top of each .m file, I define the URL to the parent folder as a string, the subfolder as a separate string: </p>
  
  <pre><code>#define WEBHOST @"http://webserverURL/mainfolder"
  #define FOLDER @"subfolderName"
  </code></pre>
  
  <p>then concatenate them:</p>
  
  <pre><code>NSString *pathString = [NSString stringWithFormat:@"%@%@", WEBHOST, FOLDER];
  NSURL *documentsDirectoryURL = [NSURL URLWithString:pathString];
  NSData *documentsHTMLData = [NSData dataWithContentsOfURL:documentsDirectoryURL];
  </code></pre>
  
  <p>I then parse the HTML with <code>hpple</code> and process as needed. I'm not sure if this is a particularly efficient technique and but it seems to do what I need. 
  However, it seems a bit messy and I imagine I'm missing some simpler or more efficient way of achieving this.</p>
  
  <p>My question: is this a reasonable way of doing this or am I committing the typical newbie crime of making things more complicated and messy than they need to be?</p>