title: How to initialize an NSArray of NSString?
body: <p>I'm using a property of NSArray type. Then I'm trying to initialize or setting values for the NSArray. When I use <strong>shorthand assignment</strong>, I'm getting the output. But when I'm trying with <strong>long initialization style</strong>, I'm not getting the result. What should be the right way for the latter??</p>
  
  <p>Here is the code snippet:</p>
  
  <pre><code>@property NSArray * moods;
  
  //shorthand assignment
  self.moods=@[@"Happy",@"Sad"];
  NSLog(@"Hello %@",[self moods]);
  </code></pre>
  
  <p>This is working. But when I tried:</p>
  
  <pre><code>//long initialization style
  [[self moods]initWithObjects:@"Happy",@"Sad", nil];
  NSLog(@"Hello %@",[self moods]);
  </code></pre>
  
  <p>This isn't doing the same way. Suggest me something please.</p>