FROM : Corbin Dunn
DATE : Tue Aug 01 23:54:22 2006
Hi Mark,
You probably want:
/* Item/Row translation
*/
- (id)itemAtRow:(NSInteger)row;
- (NSInteger)rowForItem:(id)item;
and
- (NSIndexSet *)selectedRowIndexes;
--corbin
On Aug 1, 2006, at 2:00 PM, Mark Dawson wrote:
> If you have a mulit-column NSOutlineView, and use the arrow keys to
> run up and down it, how do you tell if "your" row is selected? I'd
> like to change the display of the right column for each selection
> change in the left column.
>
> I know that for each selection change, at least two - (id)
> outlineView:objectValueForTableColumn:byItem: calls are generated
> (one for the deselected row and one for the selected row). I also
> know that I can call [outlineview selectedRow] from this routine and
> get the index of the selected row. However, depending on the
> disclosure state, this value varies for any given item. What I'd
> really like is something like: if ([item row] == [outlineView
> selectedRow]) doStuff. The outline view should know what row
> "item" (the byItem parameter) belongs to, but I can't seem to find
> anyway to track it back.
>
>
DATE : Tue Aug 01 23:54:22 2006
Hi Mark,
You probably want:
/* Item/Row translation
*/
- (id)itemAtRow:(NSInteger)row;
- (NSInteger)rowForItem:(id)item;
and
- (NSIndexSet *)selectedRowIndexes;
--corbin
On Aug 1, 2006, at 2:00 PM, Mark Dawson wrote:
> If you have a mulit-column NSOutlineView, and use the arrow keys to
> run up and down it, how do you tell if "your" row is selected? I'd
> like to change the display of the right column for each selection
> change in the left column.
>
> I know that for each selection change, at least two - (id)
> outlineView:objectValueForTableColumn:byItem: calls are generated
> (one for the deselected row and one for the selected row). I also
> know that I can call [outlineview selectedRow] from this routine and
> get the index of the selected row. However, depending on the
> disclosure state, this value varies for any given item. What I'd
> really like is something like: if ([item row] == [outlineView
> selectedRow]) doStuff. The outline view should know what row
> "item" (the byItem parameter) belongs to, but I can't seem to find
> anyway to track it back.
>
>
| Related mails | Author | Date |
|---|---|---|
| Mark Dawson | Aug 1, 23:00 | |
| Corbin Dunn | Aug 1, 23:54 | |
| Mark Dawson | Aug 2, 00:17 |






Cocoa mail archive

