title: Editing NSString's
body: <p>I am trying to change the value of an existing NSString. However it keeps giving me an 'Expected Expression' error.<br><br><br>
  I know that it is possible to do this but i am not sure exactly how to go about doing it. maybe it's just me being a noob...</p>
  
  <p>Here's my code:</p>
  
  <pre><code>NSString *object = @"";
  
  int randObj = rand() % 2;
  switch (randObj) {
      case 0:
         NSString *object = @"object 1";//error here
         break;
  
      case 1:
         NSString *object = @"object 2";//and here
          break;
  
          default:
          break;
  </code></pre>
  
  <p>The code <strong>should</strong> be changing the value of the <code>object</code> variable but it just throws an error.</p>