Re: Core Data, binding & selecting table rows upon document open
Re: Core Data, binding & selecting table rows upon document open
- Subject: Re: Core Data, binding & selecting table rows upon document open
- From: Chris Hanson <email@hidden>
- Date: Mon, 6 Feb 2006 15:06:07 -0800
On Feb 6, 2006, at 2:47 PM, Modesitt Software wrote:
I am having trouble selecting the table rows when the document is
first open. In the document method windowControllerDidLoadNib, I
read the index set of previously selected rows and call [table
selectRowIndexes:savedIndexes byExtendingSelection:NO] and it
doesn't work; the rows aren't selected.
Rather than manipulating the table view directly, manipulate the
array controller that's managing it.
One easy way to do this might be to make the index set available via
a property of your document, and to bind your array controller's
selectionIndexes to that property. That way you shouldn't have to
invoke -[NSArrayController setSelectionIndexes:] manually.
-- Chris
_______________________________________________
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