Re: How to set a default row in NSTableView?
Re: How to set a default row in NSTableView?
- Subject: Re: How to set a default row in NSTableView?
- From: Mark Dawson <email@hidden>
- Date: Tue, 21 Jun 2005 18:23:37 -0700
My main problem/issue is knowing WHEN my data source is populated. NO loading of data happens until AFTER my awakeFromNib has been called. So if I called the selection routine from -awakeFromNib, then there would be NOTHING in the table view yet . I assume that the space has been allocated for the table view (as the
numberOfRowsInTableView: has been called before awakeFromNib), but that's just a guess. If I knew the lazy init had finished, then I'd be OK (worse case, the selecting would cause a reload for non-loaded/not previously visible sections of the table).
So I do I know when my data source is populated?
Thanks,
mark
On 22 jun 2005, at 00.47, Mark Dawson wrote:
I would have thought so, but my debugging shows that -tableView objectValueForTableColumn: (loading the datasource) doesn't happen until AFTER my awakeFromNib gets called. I assume that I shouldn't call -selectRowIndexes before any data has been loaded?
That is probably an incorrect assumption. NSTableView loads data lazily, it doesn't load all data from the data source - only the data it needs to display the visible columns and rows. In other words, you should be able to call it as soon as your data source is populated and hooked up to your table view.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden