title: iPhone SDK: How to send a message from a TextField inside a TableCell to the viewController?
body: <p>My app has a UITextField inside of a table cell. The table cell is build inside of a TableController class which is the table delegate as well. The TableController is a instance variable of a ViewController class.</p>
  
  <p>What I'm trying to do is to send a message to the ViewController instance when the user touches inside the TextField.</p>
  
  <p>This is a code snipped from the TableController:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
          static NSString *CellIdentifier = @"Cell";
  
          UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
          if (cell == nil) {
                   cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease];
          }
  
          cell.textLabel.text = @"test";
  
          UITextField *textField = [[[UITextField alloc] initWithFrame:CGRectMake(1.0, 5.0, 120.0, 25.0)] autorelease];
          textField.text = @"test 2";
          [textField addTarget:self action:@selector(editingStarted) forControlEvents:UIControlEventTouchUpInside];    
          cell.accessoryView = textField;
          return cell;
  
  }
  </code></pre>
  
  <p>The first problem is that the TableControllers method editingStarted gets never called. The next interesting part will be to send a message to the parent ViewController class.</p>