title: Change the value of NSString, am I doing it right?
body: <p>I have created a class as follows</p>
  
  <pre><code>@interface sampleClass: UIViewController
  {
      NSString *currentLocation;
  }
  @property (nonatomic, copy) NSString *currentLocation;
  </code></pre>
  
  <p>So, whenever the current GPS changes, a function will be called as follows:</p>
  
  <pre><code>-(void)newLocationUpdate:(NSString *)text {
    NSString *temp = [[NSString alloc] initWithString:text];
    currentGPS = temp;
    [temp release];
  }
  </code></pre>
  
  <p>I am wondering if I am doing it right? Thanks.</p>