• 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
awakeFromNib and action question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

awakeFromNib and action question


  • Subject: awakeFromNib and action question
  • From: Terry Simons <email@hidden>
  • Date: Mon, 29 Jul 2002 02:24:11 -0600

I'd like for my NSMatrix object to call the action of the currently selected radio button that it contains, but I can't figure out how to do it.

Here's how my program is set up:

A list of radio buttons in an NSMatrix. (IBOutlet id myRadioMatrix;)

When a radio button is clicked, it performs an action. (- (IBAction)doChangeColor:(id)sender)

I'd like to simulate that action in my awakeFromNib method for the radio button that is selected by default, but I can't seem to figure out how to simulate an action.

It seems that I need to send a mouseDown message (or something) to [myRadioMatrix selectedCell].

I looked at some of the NSControl documentation, and the action, and sendAction:to: methods looked pretty good, but I can't seem to figure out how to do what I'd like to do.

Any ideas?

Thanks,

- Terry
_______________________________________________
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.

  • Follow-Ups:
    • Re: awakeFromNib and action question
      • From: Nico <email@hidden>
  • Prev by Date: Re: Dereferencing a pointer in ObjC?
  • Next by Date: Re: _assign__t18string_char_traits1ZcRcRCc link undefined sym?
  • Previous by thread: Re: application terminate, so what about memory...
  • Next by thread: Re: awakeFromNib and action question
  • Index(es):
    • Date
    • Thread