title: ios multiple class implementation
body: <p>I came from front-end development, so MVC and OOP still give me some head shakes. Just to explain to you I send like 500 dicionaries (with 100 parameters) to a nodejs server. The problem is that I has creating ivars for each parameter and each dicionary. Now I want to create some classes like a person class, in the same header file that I have my syncronization class for example. I can make something like this on the header:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  #import "GCDAsyncSocket.h"
  
  @class GCDAsyncSocket;
  
  @interface socketDelegate : NSObject&lt;NSStreamDelegate&gt;
  {
      NSInputStream   *inputStream;
      NSOutputStream  *outputStream;
      NSMutableArray  *messages;
      GCDAsyncSocket *socket;
      dispatch_queue_t connectionQueue_;
  }
  
  - (void) initNetworkCommunication;
  - (void) sendMessage:(NSArray *)message:(int)numberOfContactsToSend;
  
  @end
  
  @interface  personInfo: NSObject
  
  @property (nonatomic,weak)NSString*firstName;
  @property (nonatomic,weak)NSString*lastName;
  @property (nonatomic,weak)NSDictionary*dicToSendWithConctactInfo;
  
  @end
  </code></pre>
  
  <p>But in the implementation I don't know how to handle the multiple classes. Like I've a method inside the "socketDelegate" class that needs to use the person class, but it's not available inside it. </p>
  
  <p>What's the best way to implement this?</p>