Action of the checkboxes in a table view not getting called
Action of the checkboxes in a table view not getting called
- Subject: Action of the checkboxes in a table view not getting called
- From: "Brahmendra Kashyap" <email@hidden>
- Date: Tue, 27 Jun 2006 12:04:14 +0530
Hi
I have a table view which comes up in a panel. One of the columns of the
table view consists of check boxes. I have associated an action with that
column which should be called whenever any one of the check boxes are
clicked. But the action is not getting called.
The code used is:
NSButtonCell *aBCell = [[NSButtonCell alloc] init];
[retrieveBOMTableView setDrawsStripes:NO];
[aBCell setButtonType:NSSwitchButton];
[aBCell setEnabled:YES];
[aBCell setEditable:NO];
[aBCell setTitle:@""];
[aBCell setImagePosition:NSImageOverlaps];
[aBCell setAction:@selector(checkBoxChanged)];
[[retrieveBOMTableView tableColumnWithIdentifier:@"CHECK_FLAG"]
setDataCell:aBCell];
[retrieveBOMTableView setDrawsStripes:YES];
-(IBAction)checkBoxChanged:(id)sender
{
NSLog(@"in the function checkBoxChanged");
[self setDocumentEdited:YES];
}
The delegates are also set properly.
The action checkBoxChanged is not getting called when the check box is
clicked.
Can anyone please let me know the reason for this.
Thanks in advance,
Brahmendra Kashyap
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden