title: inheritance working on simulator but not on Iphone!
body: <p>I have come across a weird error...
  I have a class that extends another, getting some variables from it. Its a really simple one.
  when i compile the code for the simulator, it works great. When I run in the Iphone, it get an error that states that the vairable is not set!. The code:
  parent class header:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import "TarefaMap.h"
  
  
  @interface GenericTarefaTableView : UITableViewController {
  TarefaMap* tarefaMap;
  TarefaMap* tarefaMapOriginal;
  }
  @property (nonatomic, retain) TarefaMap* tarefaMap;
  @property (nonatomic, retain) TarefaMap* tarefaMapOriginal;
  
  
  @end
  </code></pre>
  
  <p>parent class implementation:</p>
  
  <pre><code>#import "GenericTarefaTableView.h"
  
  
  @implementation GenericTarefaTableView
  @synthesize tarefaMap,tarefaMapOriginal;
  
  
  @end
  </code></pre>
  
  <p>child class header:</p>
  
  <pre><code>@interface EditTarefaViewController : GenericTarefaTableView &lt;UITextFieldDelegate , UITextViewDelegate&gt; {
  
  Tarefa* tarefa;
  NSArray *fieldLabels;
  UITextField *textFieldBeginEdited;
  BOOL isEdit;
  IBOutlet UITableViewCell *cell0;
  IBOutlet UITextView* textView;
  NSManagedObjectContext* context;
  
  
  
  }
  
  @property (nonatomic, retain)  NSManagedObjectContext* context;
  @property (nonatomic, retain) IBOutlet UITextView* textView;
  @property (nonatomic, retain) IBOutlet UITableViewCell *cell0;
  @property (nonatomic, retain) Tarefa* tarefa;
  @property (nonatomic, retain) UITextField* firstField;
  @property (nonatomic, retain) NSArray *fieldLabels;
  @property (nonatomic, retain) UITextField *textFieldBeingEdited;
  
  @end
  </code></pre>
  
  <p>Child class implementation:</p>
  
  <pre><code>#import "EditTarefaViewController.h"
  
  @implementation EditTarefaViewController
  
  
  
  @synthesize tarefa, textFieldBeingEdited,firstField,fieldLabels,textView, cell0, context;
  NSMutableArray *textFieldarray;
  UIActionSheet *actionSheet;
  UITableViewCell* cell1;
  
  
  - (void)viewDidLoad
  {
  
  
  NSLog(@"ViewDidLoad");
  [super viewDidLoad];
  self.tarefaMap=[[TarefaMap alloc] initWithTarefa:tarefa];
  self.tarefaMapOriginal=[[TarefaMap alloc] initWithTarefa:tarefa];
  
  if ([tarefaMapOriginal isEqual:tarefaMap]) {
      NSLog(@"SOMOS IGUAIS!!!!!");
  }
     NSLog(@"Comparando tarefas!!!!!");
  if ([tarefaMapOriginal isEqualtoTarefaMap:tarefaMap]) {
      NSLog(@"SOMOS IGUAIS2!!!!!");
  }
  }
  </code></pre>
  
  <p>This compiles fine on the simulator, but when i Try on the IPhone, I get an error saying that the variables tarefaMap is undeclared, and should be declared on the function...</p>
  
  <p>any thoughts?</p>