title: Why is my object is not storing the NSNumber Data and returning 0 as the value?
body: <p>I have an object: indivOrder:</p>
  
  <pre><code>@interface indivOrderDetails : NSObject{
  
      NSNumber* shirtNumber;
      NSNumber* pantsNumber;
      NSNumber* jacketNumber;
      NSNumber* laundryNumber;
      NSNumber* blouseNumber;
      NSNumber* blazerNumber;
      NSNumber* skirtNumber;
      NSNumber* suitNumber;
      NSString* pickUpOrDropOff;
      NSString* pickUpFrom;
      NSNumber* totalOrderPrice;
  }
  </code></pre>
  
  <p>They're all given the interface of </p>
  
  <pre><code> @property (nonatomic, retain) NSNumber* propertyName
  </code></pre>
  
  <p>I have three steps.  </p>
  
  <p>First I retrieve the data from a text field:</p>
  
  <pre><code> shirtNumber = [self convertStringToNumber:shirtField.text];
  </code></pre>
  
  <p>Second, I use this <code>convertStringToNumber</code> method.</p>
  
  <pre><code>-(NSNumber*) convertStringToNumber:(NSString*)stringToConvert
  {
  
      NSNumberFormatter *f = [[NSNumberFormatter alloc] init];
      [f setNumberStyle:NSNumberFormatterDecimalStyle];
      NSNumber *myNumber = [f numberFromString:stringToConvert];
  
      return myNumber;
  
  }
  </code></pre>
  
  <p>Then I assign that value to my object variable.</p>
  
  <pre><code> orderDetails.shirtNumber = shirtNumber;
  </code></pre>
  
  <p>But the only value I'm coming back with when I try to access the <code>orderDetails.shirtNumber</code> variable is zero.  The <code>shirtNumber</code> is coming back with the correct value from the ViewController.</p>