• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Tracking a NSMatrix's selection (follow up)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: RE: NSString and NSCopying Protocol
  • Next by Date: Re: Table View Blues (summary), or, allocWithZone not working
  • Previous by thread: Re: Address Book API - Person vs Company
  • Next by thread: Re: Table View Blues (summary), or, allocWithZone not working
  • Index(es):
    • Date
    • Thread