• 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
Re: Distinct action messages from matrix of NSButtonCells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Distinct action messages from matrix of NSButtonCells


  • Subject: Re: Distinct action messages from matrix of NSButtonCells
  • From: "Erik M. Buck" <email@hidden>
  • Date: Wed, 3 Oct 2001 11:55:46 -0500

please do at least the minimum RTFM:

from
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/Ob
jC_classic/Classes/NSMatrix.html#//apple_ref/occ/instm/NSMatrix/selectedCell

[Regarding the selected cell:]
selectedCell
- (id)selectedCell

Returns the most recently selected cell, or nil if no cell is selected. If
more than one cell is selected, this method returns the cell that is lowest
and furthest to the right in the receiver.
----------------------------------------------------------------------------
----


selectedCells
- (NSArray *)selectedCells

Returns an array containing all of the receiver's highlighted cells.
See Also: - selectedCell


----------------------------------------------------------------------------
----


selectedColumn
- (int)selectedColumn

Returns the column number of the selected cell, or -1 if no cells are
selected. If cells in multiple columns are selected, this method returns the
number of the last (right-most) column containing a selected cell.
----------------------------------------------------------------------------
----


selectedRow
- (int)selectedRow

Returns the row number of the selected cell, or -1 if no cells are selected.
If cells in multiple rows are selected, this method returns the number of
the last row containing a selected cell.



[Regarding getting the cell as the sender of the action:]

An NSMatrix adds to NSControl's target/action paradigm by allowing a
separate target and action for each of its NSCells in addition to its own
target and action. It also allows for an action message that's sent when the
user double-clicks an NSCell, which is sent in addition to the single-click
action message. If an NSCell doesn't have an action, the NSMatrix sends its
own action to its own target. If an NSCell doesn't have a target, the
NSMatrix sends the NSCell's action to its own target. The double-click
action of an NSMatrix is always sent to the target of the NSMatrix.









----- Original Message -----

References: 
 >Distinct action messages from matrix of NSButtonCells (From: Brad Werth <email@hidden>)

  • Prev by Date: Re: Question on NSTextView And Syntax Highlighting...
  • Next by Date: Re: Distinct action messages from matrix of NSButtonCells
  • Previous by thread: Distinct action messages from matrix of NSButtonCells
  • Next by thread: Re: Distinct action messages from matrix of NSButtonCells
  • Index(es):
    • Date
    • Thread