Copyright ã1996 by NeXT Software, Inc.  All Rights Reserved.

;SettingUpTableViews.rtfd;;¬  Next Section	;SettingAttributesOfMenuCellsAndPopUpLists.rtfd;;¬  Previous Section

Settingmatrixattributes;¬Setting matrix attributes 

¬	Set the background gray of the matrix.

¬	Set the matrix selection mode.

¬	Set autosizing behavior and other properties of cells.

¬	Inspect the cell prototype and change it, if necessary.

The Attributes display for matrices allows you to determine how a matrix and its cells look and behave.

¬

Matrix Selection Mode

The selection modes specify how cells behave when a user is dragging a mouse within a matrix. They also determine if the user can select multiple items in the matrixÐa column of switch buttons, for example, allows multiple selection.

¬	Track: The cells track the mouse when it is within their bounds but do not highlight themselves. This mode would be suitable for a ªgraphic equalizerº matrix of sliders. Dragging the mouse causes the sliders to move.

¬	Radio: Only one cell in the matrix can be selected at a time, as is the typical case with a matrix of radiobuttons.

¬	Highlight: Each cell is highlighted while it tracks the mouse and is unhighlighted when done tracking. This mode allows multiple selections. A matrix of switch buttonscommonly has this mode.

¬	List: Cells are highlighted as the mouse is dragged across them, but they do not track the mouse. In this mode, a matrix supports multiple selection, enabling a user, for instance, to select a range of text in a matrix of text objects.

Cells Options 

Option	Description
¬

Autosize 	If set, the cells resize when the matrix is resized, keeping the space between cells constant. If not set, the space between cells changes.
¬

Selection by rect	Allows users to select multiple cells by dragging the mouse around them.
¬

Match Prototype	Applies the new prototype to the selected matrix's existing cells.
¬

Tags = Position	Resequences the cell's tags if you've added cells to a previously created matrix. When you create a matrix, cells are assigned consecutive tags starting from zero. For two dimensional matrices, the progression is from left to right (row), then down (column). When you later add new cells, they all have tags of zero. 
¬

A tag is an internal identifier of an object that you can use in your code. See ªUsing tagsº in this chapter for more information.  ;UsingTags.rtfd;;¬

Related Concept:  ;SettingAttributesConcepts.rtfd; linkMarkername ChangingthePrototypeCell;,  Changing the Prototype Cell

Related Concept:  ;SettingAttributesConcepts.rtfd; linkMarkername CompoundObjects;,  Compound Objects