title: Access NSMutableArray from another class
body: <p>This is how my Entity classes look:</p>
  
  <p>BaseDataEntity.h</p>
  
  <pre><code>#import -Foundation/Foundation.h
  
  @interface BaseDataEntity : NSObject
  
  @property (assign) NSMutableArray *cbxDataList;
  @property (assign) NSString  *resaultText;
  
  @end
  </code></pre>
  
  <p>BaseDataEntity.m</p>
  
  <pre><code>#import "BaseDataEntity.h"
  
  @implementation BaseDataEntity
  
  @synthesize cbxDataList = _cbxDataList;
  @synthesize resaultText = _resaultText;
  
  @end
  </code></pre>
  
  <p>And this is how I try to access them:</p>
  
  <pre><code>-(void)applicationDidFinishLaunching:(NSNotification *)aNotification{
  
      BaseDataEntity *aBaseDataEntity = [[BaseDataEntity alloc] init];
      [self setBaseDataEntity:aBaseDataEntity];
  
  }
  
  -(IBAction)ReadPort:(id)sender {
  
      NSMutableArray* array = [[NSMutableArray alloc] init];
      for (int i=0; i&lt;10; i++) {
          NSString *temp = [NSString stringWithFormat:@"Test %d", i];
          [array addObject:temp];
      }
      [self.baseDataEntity setCbxDataList:array];
  
      NSLog(@" cbxDataList count = %lu",[array count]);
      [array release];
  
      [self.baseDataEntity setResaultText:@"Test"];
      [self updateUserInterface:TRUE];
  }
  
  
  -(void)updateUserInterface:(BOOL)piClear{
  
      NSString *textValue = [NSString stringWithFormat:@"%@"
                             ,[self.baseDataEntity resaultText]];
  
      if([self.ResaultTextField stringValue] != nil &amp;&amp; !piClear){
          textValue = [NSString stringWithFormat:@"%@\n%@", textValue
                       ,[self.ResaultTextField stringValue]];
      }
  
      NSMutableArray* array = [[NSMutableArray alloc] initWithArray:
          [self.baseDataEntity.cbxDataList value]];
  
      for (int i = 0; i &lt; [array count]; i++) {
          textValue = [NSString stringWithFormat:@"%@\n%@", textValue
                       ,[array objectAtIndex:i]];
      }
      [array release];
  
      [self.ResaultTextField setStringValue:textValue];
  }
  </code></pre>
  
  <p>The problem is that I can update <code>resaultText</code> and have access to the value of this. But <code>cbxDataList</code> value is always empty.</p>