Carbon


Selection Flags

Header: Lists.h

enum {
    lOnlyOne = -128,
    lExtendDrag = 64,
    lNoDisjoint = 32,
    lNoExtend = 16,
    lNoRect = 8,
    lUseSense = 4,
    lNoNilHilite = 2
};

Constant descriptions

lOnlyOne

Specify this value if you wish to allow only one item to be selected at once.

lExtendDrag

Specify this value if you wish to enable selection of multiple items by dragging without the Shift key.

lNoDisjoint

Specify this value if you wish to prevent discontiguous selections using the Command key.

lNoExtend

Specify this value if you wish to prevent extending Shift key selections. All items are deselected before responding to Shift-click.

lNoRect

Specify this value if you wish to select all items in the cursor’s path during Shift-drag.

lUseSense

Specify this value if you wish to allow the user to deselect one or more items using the Shift key

lNoNilHilite

Specify this value if you wish to disable the highlighting of empty cells.

The ListRec structure uses these values in the selFlags field to indicate the List Manager’s default selection algorithm. Use these values additively to select more than one selection option.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)