NSTableView in NSTabView(Item) update problem
NSTableView in NSTabView(Item) update problem
- Subject: NSTableView in NSTabView(Item) update problem
- From: Rick Jansen <email@hidden>
- Date: Fri, 28 Nov 2003 00:42:30 +0100
I have a simple NSTableView that I fill in with the wellknown
methods (numberOfRowsInTableView/objectValueForTableColumn)
and that all works fine. I also pre-select some rows in the
table using [tableView selectRow:row byExtendingSelection:YES];
The cells in the table are not editable, I'm just interested in
(multiple) row-selections.
The table displays OK in the NSTabViewItem it's in, apart from
the pre-selected rows: they are not hilited until I select another
window or tab. At that moment the pre-selected rows are hilited gray.
When I reselect my window (or tab) they're hilited OK in blue.
I did do: [Window makeFirstResponder: SelectionTabView];
but obviously I'm missing something in the update process of
NSTableView! How do I set this up so the table shows with the
pre-selected rows right away?
--
Rick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.