NSMatrix sending a message
NSMatrix sending a message
- Subject: NSMatrix sending a message
- From: John Spicer <email@hidden>
- Date: Fri, 28 Jan 2005 16:34:22 -0600
Is there a way to set an NSMatrix to send a message when a person selects one of the items in it?
I found some sample code (the text was japanese, which didn't help much ;) and tried that but no luck. I've set a delegate of the matrix, and tried setAction to assign a method to be called but it's not getting called (debug text not printing).
Any ideas?
This is the source code, with things commented out that I've tried (some from the japanese sample, above)
- (void) PaletteController
{
// [theMatrix sendAction];
// [theMatrix sendAction:@selector(matbut:) to:self forAllCells:YES];
[theMatrix setAction:@selector(matbut:)];
}
-(id)sender
{
NSLog(@"matbut");
}
_______________________________________________
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