API  0.9.10
CPOutlineView.j File Reference

Go to the source code of this file.

Classes

protocol  <CPOutlineViewDataSource >
 
protocol  <CPOutlineViewDelegate >
 

Macros

#define SELECTION_SHOULD_CHANGE(anOutlineView)   (!((anOutlineView)._implementedOutlineViewDelegateMethods & CPOutlineViewDelegate_selectionShouldChangeInOutlineView_) || [(anOutlineView)._outlineViewDelegate selectionShouldChangeInOutlineView:(anOutlineView)])
 
#define SHOULD_SELECT_ITEM(anOutlineView, anItem)   (!((anOutlineView)._implementedOutlineViewDelegateMethods & CPOutlineViewDelegate_outlineView_shouldSelectItem_) || [(anOutlineView)._outlineViewDelegate outlineView:(anOutlineView) shouldSelectItem:(anItem)])
 

Variables

var colorForDisclosureTriangle
 
var CPOutlineViewCoalesceSelectionNotificationStateDid = 2
 
var CPOutlineViewCoalesceSelectionNotificationStateOff = 0
 
var CPOutlineViewCoalesceSelectionNotificationStateOn = 1
 
global CPApp CPOutlineViewColumnDidMoveNotification = @"CPOutlineViewColumnDidMoveNotification"
 
 CPOutlineViewColumnDidResizeNotification = @"CPOutlineViewColumnDidResizeNotification"
 
var CPOutlineViewDataSource_outlineView_acceptDrop_item_childIndex_ = 1 << 4
 
var CPOutlineViewDataSource_outlineView_itemForPersistentObject_ = 1 << 8
 
var CPOutlineViewDataSource_outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems_ = 1 << 7
 
var CPOutlineViewDataSource_outlineView_objectValue_forTableColumn_byItem_ = 1 << 1
 
var CPOutlineViewDataSource_outlineView_persistentObjectForItem_ = 1 << 9
 
var CPOutlineViewDataSource_outlineView_setObjectValue_forTableColumn_byItem_ = 1 << 2
 
var CPOutlineViewDataSource_outlineView_shouldDeferDisplayingChildrenOfItem_ = 1 << 3
 
var CPOutlineViewDataSource_outlineView_sortDescriptorsDidChange_ = 1 << 11
 
var CPOutlineViewDataSource_outlineView_validateDrop_proposedItem_proposedChildIndex_ = 1 << 5
 
var CPOutlineViewDataSource_outlineView_validateDrop_proposedRow_proposedDropOperation_ = 1 << 6
 
var CPOutlineViewDataSource_outlineView_writeItems_toPasteboard_ = 1 << 10
 
var CPOutlineViewDataSourceKey = @"@"CPOutlineViewDataSourceKey"
 
var CPOutlineViewDelegate_outlineView_dataViewForTableColumn_item_ = 1 << 1
 
var CPOutlineViewDelegate_outlineView_didClickTableColumn_ = 1 << 2
 
var CPOutlineViewDelegate_outlineView_didDragTableColumn_ = 1 << 3
 
var CPOutlineViewDelegate_outlineView_heightOfRowByItem_ = 1 << 4
 
var CPOutlineViewDelegate_outlineView_isGroupItem_ = 1 << 5
 
var CPOutlineViewDelegate_outlineView_menuForTableColumn_item_ = 1 << 26
 
var CPOutlineViewDelegate_outlineView_mouseDownInHeaderOfTableColumn_ = 1 << 6
 
var CPOutlineViewDelegate_outlineView_nextTypeSelectMatchFromItem_toItem_forString_ = 1 << 7
 
var CPOutlineViewDelegate_outlineView_selectionIndexesForProposedSelection_ = 1 << 8
 
var CPOutlineViewDelegate_outlineView_shouldCollapseItem_ = 1 << 9
 
var CPOutlineViewDelegate_outlineView_shouldEditTableColumn_item_ = 1 << 10
 
var CPOutlineViewDelegate_outlineView_shouldExpandItem_ = 1 << 11
 
var CPOutlineViewDelegate_outlineView_shouldReorderColumn_toColumn_ = 1 << 12
 
var CPOutlineViewDelegate_outlineView_shouldSelectItem_ = 1 << 13
 
var CPOutlineViewDelegate_outlineView_shouldSelectTableColumn_ = 1 << 14
 
var CPOutlineViewDelegate_outlineView_shouldShowOutlineDisclosureControlForItem_ = 1 << 15
 
var CPOutlineViewDelegate_outlineView_shouldShowViewExpansionForTableColumn_item_ = 1 << 16
 
var CPOutlineViewDelegate_outlineView_shouldTrackView_forTableColumn_item_ = 1 << 17
 
var CPOutlineViewDelegate_outlineView_shouldTypeSelectForEvent_withCurrentSearchString_ = 1 << 18
 
var CPOutlineViewDelegate_outlineView_sizeToFitWidthOfColumn_ = 1 << 19
 
var CPOutlineViewDelegate_outlineView_toolTipForView_rect_tableColumn_item_mouseLocation_ = 1 << 20
 
var CPOutlineViewDelegate_outlineView_typeSelectStringForTableColumn_item_ = 1 << 21
 
var CPOutlineViewDelegate_outlineView_viewForTableColumn_item_ = 1 << 27
 
var CPOutlineViewDelegate_outlineView_willDisplayOutlineView_forTableColumn_item_ = 1 << 22
 
var CPOutlineViewDelegate_outlineView_willDisplayView_forTableColumn_item_ = 1 << 23
 
var CPOutlineViewDelegate_outlineView_willRemoveView_forTableColumn_item_ = 1 << 24
 
var CPOutlineViewDelegate_selectionShouldChangeInOutlineView_ = 1 << 25
 
var CPOutlineViewDelegateKey = @"@"CPOutlineViewDelegateKey"
 
 CPOutlineViewDropOnItemIndex = -1
 
var CPOutlineViewIndentationPerLevelKey = @"@"CPOutlineViewIndentationPerLevelKey"
 
 CPOutlineViewItemDidCollapseNotification = @"CPOutlineViewItemDidCollapseNotification"
 
 CPOutlineViewItemDidExpandNotification = @"CPOutlineViewItemDidExpandNotification"
 
 CPOutlineViewItemWillCollapseNotification = @"CPOutlineViewItemWillCollapseNotification"
 
 CPOutlineViewItemWillExpandNotification = @"CPOutlineViewItemWillExpandNotification"
 
var CPOutlineViewOutlineTableColumnKey = @"@"CPOutlineViewOutlineTableColumnKey"
 
 CPOutlineViewSelectionDidChangeNotification = @"CPOutlineViewSelectionDidChangeNotification"
 
 CPOutlineViewSelectionIsChangingNotification = @"CPOutlineViewSelectionIsChangingNotification"
 

Macro Definition Documentation

◆ SELECTION_SHOULD_CHANGE

#define SELECTION_SHOULD_CHANGE (   anOutlineView)    (!((anOutlineView)._implementedOutlineViewDelegateMethods & CPOutlineViewDelegate_selectionShouldChangeInOutlineView_) || [(anOutlineView)._outlineViewDelegate selectionShouldChangeInOutlineView:(anOutlineView)])

Definition at line 85 of file CPOutlineView.j.

◆ SHOULD_SELECT_ITEM

#define SHOULD_SELECT_ITEM (   anOutlineView,
  anItem 
)    (!((anOutlineView)._implementedOutlineViewDelegateMethods & CPOutlineViewDelegate_outlineView_shouldSelectItem_) || [(anOutlineView)._outlineViewDelegate outlineView:(anOutlineView) shouldSelectItem:(anItem)])

Definition at line 87 of file CPOutlineView.j.

Variable Documentation

◆ colorForDisclosureTriangle

var colorForDisclosureTriangle
Initial value:
= function(isSelected, isHighlighted)
{
return isSelected
? (isHighlighted
? [CPColor colorWithCalibratedWhite:0.9 alpha: 1.0]
: [CPColor colorWithCalibratedWhite:1.0 alpha: 1.0])
: (isHighlighted
? [CPColor colorWithCalibratedWhite:0.4 alpha: 1.0]
: [CPColor colorWithCalibratedWhite:0.5 alpha: 1.0]);
}

Definition at line 2237 of file CPOutlineView.j.

◆ CPOutlineViewCoalesceSelectionNotificationStateDid

var CPOutlineViewCoalesceSelectionNotificationStateDid = 2

Definition at line 83 of file CPOutlineView.j.

◆ CPOutlineViewCoalesceSelectionNotificationStateOff

var CPOutlineViewCoalesceSelectionNotificationStateOff = 0

Definition at line 81 of file CPOutlineView.j.

◆ CPOutlineViewCoalesceSelectionNotificationStateOn

var CPOutlineViewCoalesceSelectionNotificationStateOn = 1

Definition at line 82 of file CPOutlineView.j.

◆ CPOutlineViewColumnDidMoveNotification

global CPApp CPOutlineViewColumnDidMoveNotification = @"CPOutlineViewColumnDidMoveNotification"

Definition at line 26 of file CPOutlineView.j.

◆ CPOutlineViewColumnDidResizeNotification

CPOutlineViewColumnDidResizeNotification = @"CPOutlineViewColumnDidResizeNotification"

Definition at line 27 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_acceptDrop_item_childIndex_

var CPOutlineViewDataSource_outlineView_acceptDrop_item_childIndex_ = 1 << 4

Definition at line 39 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_itemForPersistentObject_

var CPOutlineViewDataSource_outlineView_itemForPersistentObject_ = 1 << 8

Definition at line 44 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems_

var CPOutlineViewDataSource_outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems_ = 1 << 7

Definition at line 42 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_objectValue_forTableColumn_byItem_

var CPOutlineViewDataSource_outlineView_objectValue_forTableColumn_byItem_ = 1 << 1

Definition at line 35 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_persistentObjectForItem_

var CPOutlineViewDataSource_outlineView_persistentObjectForItem_ = 1 << 9

Definition at line 45 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_setObjectValue_forTableColumn_byItem_

var CPOutlineViewDataSource_outlineView_setObjectValue_forTableColumn_byItem_ = 1 << 2

Definition at line 36 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_shouldDeferDisplayingChildrenOfItem_

var CPOutlineViewDataSource_outlineView_shouldDeferDisplayingChildrenOfItem_ = 1 << 3

Definition at line 37 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_sortDescriptorsDidChange_

var CPOutlineViewDataSource_outlineView_sortDescriptorsDidChange_ = 1 << 11

Definition at line 49 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_validateDrop_proposedItem_proposedChildIndex_

var CPOutlineViewDataSource_outlineView_validateDrop_proposedItem_proposedChildIndex_ = 1 << 5

Definition at line 40 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_validateDrop_proposedRow_proposedDropOperation_

var CPOutlineViewDataSource_outlineView_validateDrop_proposedRow_proposedDropOperation_ = 1 << 6

Definition at line 41 of file CPOutlineView.j.

◆ CPOutlineViewDataSource_outlineView_writeItems_toPasteboard_

var CPOutlineViewDataSource_outlineView_writeItems_toPasteboard_ = 1 << 10

Definition at line 47 of file CPOutlineView.j.

◆ CPOutlineViewDataSourceKey

var CPOutlineViewDataSourceKey = @"@"CPOutlineViewDataSourceKey"

Definition at line 2180 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_dataViewForTableColumn_item_

var CPOutlineViewDelegate_outlineView_dataViewForTableColumn_item_ = 1 << 1

Definition at line 51 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_didClickTableColumn_

var CPOutlineViewDelegate_outlineView_didClickTableColumn_ = 1 << 2

Definition at line 52 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_didDragTableColumn_

var CPOutlineViewDelegate_outlineView_didDragTableColumn_ = 1 << 3

Definition at line 53 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_heightOfRowByItem_

var CPOutlineViewDelegate_outlineView_heightOfRowByItem_ = 1 << 4

Definition at line 54 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_isGroupItem_

var CPOutlineViewDelegate_outlineView_isGroupItem_ = 1 << 5

Definition at line 55 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_menuForTableColumn_item_

var CPOutlineViewDelegate_outlineView_menuForTableColumn_item_ = 1 << 26

Definition at line 76 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_mouseDownInHeaderOfTableColumn_

var CPOutlineViewDelegate_outlineView_mouseDownInHeaderOfTableColumn_ = 1 << 6

Definition at line 56 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_nextTypeSelectMatchFromItem_toItem_forString_

var CPOutlineViewDelegate_outlineView_nextTypeSelectMatchFromItem_toItem_forString_ = 1 << 7

Definition at line 57 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_selectionIndexesForProposedSelection_

var CPOutlineViewDelegate_outlineView_selectionIndexesForProposedSelection_ = 1 << 8

Definition at line 58 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldCollapseItem_

var CPOutlineViewDelegate_outlineView_shouldCollapseItem_ = 1 << 9

Definition at line 59 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldEditTableColumn_item_

var CPOutlineViewDelegate_outlineView_shouldEditTableColumn_item_ = 1 << 10

Definition at line 60 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldExpandItem_

var CPOutlineViewDelegate_outlineView_shouldExpandItem_ = 1 << 11

Definition at line 61 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldReorderColumn_toColumn_

var CPOutlineViewDelegate_outlineView_shouldReorderColumn_toColumn_ = 1 << 12

Definition at line 62 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldSelectItem_

var CPOutlineViewDelegate_outlineView_shouldSelectItem_ = 1 << 13

Definition at line 63 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldSelectTableColumn_

var CPOutlineViewDelegate_outlineView_shouldSelectTableColumn_ = 1 << 14

Definition at line 64 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldShowOutlineDisclosureControlForItem_

var CPOutlineViewDelegate_outlineView_shouldShowOutlineDisclosureControlForItem_ = 1 << 15

Definition at line 65 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldShowViewExpansionForTableColumn_item_

var CPOutlineViewDelegate_outlineView_shouldShowViewExpansionForTableColumn_item_ = 1 << 16

Definition at line 66 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldTrackView_forTableColumn_item_

var CPOutlineViewDelegate_outlineView_shouldTrackView_forTableColumn_item_ = 1 << 17

Definition at line 67 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_shouldTypeSelectForEvent_withCurrentSearchString_

var CPOutlineViewDelegate_outlineView_shouldTypeSelectForEvent_withCurrentSearchString_ = 1 << 18

Definition at line 68 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_sizeToFitWidthOfColumn_

var CPOutlineViewDelegate_outlineView_sizeToFitWidthOfColumn_ = 1 << 19

Definition at line 69 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_toolTipForView_rect_tableColumn_item_mouseLocation_

var CPOutlineViewDelegate_outlineView_toolTipForView_rect_tableColumn_item_mouseLocation_ = 1 << 20

Definition at line 70 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_typeSelectStringForTableColumn_item_

var CPOutlineViewDelegate_outlineView_typeSelectStringForTableColumn_item_ = 1 << 21

Definition at line 71 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_viewForTableColumn_item_

var CPOutlineViewDelegate_outlineView_viewForTableColumn_item_ = 1 << 27

Definition at line 77 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_willDisplayOutlineView_forTableColumn_item_

var CPOutlineViewDelegate_outlineView_willDisplayOutlineView_forTableColumn_item_ = 1 << 22

Definition at line 72 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_willDisplayView_forTableColumn_item_

var CPOutlineViewDelegate_outlineView_willDisplayView_forTableColumn_item_ = 1 << 23

Definition at line 73 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_outlineView_willRemoveView_forTableColumn_item_

var CPOutlineViewDelegate_outlineView_willRemoveView_forTableColumn_item_ = 1 << 24

Definition at line 74 of file CPOutlineView.j.

◆ CPOutlineViewDelegate_selectionShouldChangeInOutlineView_

var CPOutlineViewDelegate_selectionShouldChangeInOutlineView_ = 1 << 25

Definition at line 75 of file CPOutlineView.j.

◆ CPOutlineViewDelegateKey

var CPOutlineViewDelegateKey = @"@"CPOutlineViewDelegateKey"

Definition at line 2181 of file CPOutlineView.j.

◆ CPOutlineViewDropOnItemIndex

CPOutlineViewDropOnItemIndex = -1

Definition at line 79 of file CPOutlineView.j.

◆ CPOutlineViewIndentationPerLevelKey

var CPOutlineViewIndentationPerLevelKey = @"@"CPOutlineViewIndentationPerLevelKey"

Definition at line 2178 of file CPOutlineView.j.

◆ CPOutlineViewItemDidCollapseNotification

CPOutlineViewItemDidCollapseNotification = @"CPOutlineViewItemDidCollapseNotification"

Definition at line 28 of file CPOutlineView.j.

◆ CPOutlineViewItemDidExpandNotification

CPOutlineViewItemDidExpandNotification = @"CPOutlineViewItemDidExpandNotification"

Definition at line 29 of file CPOutlineView.j.

◆ CPOutlineViewItemWillCollapseNotification

CPOutlineViewItemWillCollapseNotification = @"CPOutlineViewItemWillCollapseNotification"

Definition at line 30 of file CPOutlineView.j.

◆ CPOutlineViewItemWillExpandNotification

CPOutlineViewItemWillExpandNotification = @"CPOutlineViewItemWillExpandNotification"

Definition at line 31 of file CPOutlineView.j.

◆ CPOutlineViewOutlineTableColumnKey

var CPOutlineViewOutlineTableColumnKey = @"@"CPOutlineViewOutlineTableColumnKey"

Definition at line 2179 of file CPOutlineView.j.

◆ CPOutlineViewSelectionDidChangeNotification

CPOutlineViewSelectionDidChangeNotification = @"CPOutlineViewSelectionDidChangeNotification"

Definition at line 32 of file CPOutlineView.j.

◆ CPOutlineViewSelectionIsChangingNotification

CPOutlineViewSelectionIsChangingNotification = @"CPOutlineViewSelectionIsChangingNotification"

Definition at line 33 of file CPOutlineView.j.