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 15:47:55 -0700
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?
Thanks,
Mark
On Jun 21, 2005, at 5:25 PM, email@hidden wrote:
How do I select a default row in an NSTableView? From what I can
tell,
I call
selectRowIndexes:byExtendingSelection: and scrollRowToVisible: to set
and center that row; however, I don't know where/when to call them.
Do
I check to see if I'm being called for the last row in
tableView:(NSTableView*)tableView objectValueForTableColumn:, then
call
them, or is there a better place? The default row would need to be
programically set, not in IB. RIght now (10.3.9) nothing is selected,
by default.
I'm a beginner, but I think this is something you'd do in an
-awakeFromNib: method in a controller class in the NIB file.
Ben
--
Ben Kazez
iCal Events Widget
http://www.benkazez.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
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