Tracking a NSMatrix's selection (follow up)
Tracking a NSMatrix's selection (follow up)
- Subject: Tracking a NSMatrix's selection (follow up)
- From: "Jean-Olivier Lanctôt-D." <email@hidden>
- Date: Wed, 20 Nov 2002 17:34:16 -0500
Hi,
I'm looking for something similar to selectionDidChange...
Connecting the Matrix to an IBAction does not work.
I've got this code
( the IBAction that's connected to the matrix. )
- (IBAction)optionsSelectAction:(id)sender
{
NSLog(@"SelectedGroupsOnlyCell %d",[ABSelectedOnlyCell intValue]);
NSLog(@"AllCell %d", [ABAllCell intValue]);
NSLog(@"--");
if ([ABSelectedOnlyCell intValue]) {
syncAllContacts = NO;
} else if ([ABAllCell intValue]) {
syncAllContacts = YES;
}
[groupsTableView reloadData];
}
But it really doesn't work. *sigh*
Sometimes I get
2002-11-20 17:26:33.260 App[8875] only 1
2002-11-20 17:26:33.261 App[8875] all 1
when the matrix allows only one choice ( radio type )
Go Figure... :rollseyes:
I also tried with [cell state]==NSOnState.
I don't know what to do, help me!
-- Jean-Olivier
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.