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: Ben Kazez <email@hidden>
- Date: Tue, 21 Jun 2005 18:19:39 -0400
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:
This email sent to email@hidden