| 529 | | if ([self isItemExpanded:item]) { |
|---|
| 530 | | [self collapseItem:item]; |
|---|
| 531 | | } else { |
|---|
| 532 | | [self expandItem:item]; |
|---|
| 533 | | } |
|---|
| 534 | | |
|---|
| 535 | | [self selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO]; |
|---|
| 536 | | break; |
|---|
| | 529 | if ([self isItemExpanded:item]) { |
|---|
| | 530 | [self collapseItem:item]; |
|---|
| | 531 | } else { |
|---|
| | 532 | [self expandItem:item]; |
|---|
| | 533 | } |
|---|
| | 534 | |
|---|
| | 535 | /* If the disclosure triangle was not the click-point, select the row. |
|---|
| | 536 | * |
|---|
| | 537 | * We use the approximation that the height of the row is about the same widht |
|---|
| | 538 | * as the disclosure triangle. |
|---|
| | 539 | */ |
|---|
| | 540 | if (viewPoint.x >= NSHeight([self frameOfCellAtColumn:0 row:row])) |
|---|
| | 541 | [self selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO]; |
|---|
| | 542 | break; |
|---|
| | 769 | #pragma mark Accessibility |
|---|
| | 770 | - (NSArray *)accessibilityAttributeNames |
|---|
| | 771 | { |
|---|
| | 772 | AILogWithSignature(@"names: %@", [super accessibilityAttributeNames]); |
|---|
| | 773 | return [super accessibilityAttributeNames]; |
|---|
| | 774 | } |
|---|
| | 775 | |
|---|
| | 776 | - (id)accessibilityAttributeValue:(NSString *)attribute |
|---|
| | 777 | { |
|---|
| | 778 | AILogWithSignature(@"%@ -> %@", attribute, [super accessibilityAttributeValue:attribute]); |
|---|
| | 779 | return [super accessibilityAttributeValue:attribute]; |
|---|
| | 780 | |
|---|
| | 781 | } |
|---|
| | 782 | |
|---|