• 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
NSMatrix sending a message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSMatrix sending a message
      • From: John Pannell <email@hidden>
  • Prev by Date: NSBox, Primary border, clipping
  • Next by Date: Re: commitEditing not committing edits
  • Previous by thread: NSBox, Primary border, clipping
  • Next by thread: Re: NSMatrix sending a message
  • Index(es):
    • Date
    • Thread