title: Change IBOutlet text to property of object returned from custom class
body: <p>I'm using xCode 4.2.1 - I have an app that uses a web service and fetches some data using a custom class and NSURLConnection. The user taps a "refresh" button which starts a series of events that happen in some custom classes in my project, and I can get the object, along with the properties I want to return in a method in the MainViewController, I'm just not able to change the text of an IBOutlet to a property (NSString) of the returned object.</p>
  
  <p>In my "MainViewController.h, I have an IBOutlet (and it's wired to a button in the MainViewController.xib):</p>
  
  <pre><code>IBOutlet UILabel *textLabel;
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>@property (nonatomic, retain) IBOutlet UILabel *textLabel;
  </code></pre>
  
  <p>And I've synthesized the label in MainViewController.m</p>
  
  <pre><code>@synthesize textLabel;
  </code></pre>
  
  <p>The process looks like this:  Refresh Button Tapped --> Fires a mthod in MainViewController --> Fires another method in a custom class (retrieves data from web, creates object) --> Sends Object to MainViewController via: (in my custom class implementation)</p>
  
  <pre><code>// parsing, etc.. and define a string for priceString property of mp object    
  MainViewController *mvc = [[MainViewController alloc] init];
      [mvc log:mp];
  </code></pre>
  
  <p>And in my MainViewController.m I can access a property of that object and print it in NSLog just fine from this method.</p>
  
  <pre><code>- (void) log:(Price *)mp {
  
      self.textLabel.text = mp.priceString;
      NSLog(@"%@", mp.priceString);
  }
  </code></pre>
  
  <p>At this point, I can see the data in the log, but the textLabel text won't change.</p>
  
  <p>I've been trying to read examples for a week, and I've heard everything from delegation, to NSNotication answers, but nothing seems to work.</p>
  
  <p>All I need to do is populate an IBOutlet from a -(void) method. 
  Any help would be greatly appreciated, and I'm down for implementing delegation, but I'm very new to it, and seeking an example.</p>
  
  <p>EDIT - more details. </p>
  
  <p>After further research, I think I should note that my NSURLConnection that is returning my objects is in a separate class, and I've been reading a lot of threads where people are starting the connection in viewDidLoad. </p>