Re: Action of the checkboxes in a table view not getting called
Re: Action of the checkboxes in a table view not getting called
- Subject: Re: Action of the checkboxes in a table view not getting called
- From: Apparao <email@hidden>
- Date: Tue, 27 Jun 2006 13:49:04 +0530
Hi,
You have to set the target of the Action cell. Use the following
method to set the target.
- (void)setTarget:(id)anObject
- Apparao
On 27-Jun-06, at 12:04 PM, Brahmendra Kashyap wrote:
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:
40effigent.net
This email sent to email@hidden
_______________________________________________
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