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: Modesitt Software <email@hidden>
- Date: Mon, 6 Feb 2006 22:39:28 -0800
On Feb 6, 2006, at 3:06 PM, Chris Hanson wrote:
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
I tried that but still no luck. I think it's the same issue: it
can't be done in windowControllerDidLoadNib, it has to be set after
all the data are inserted into the table. Is there a delegate method
or notification sent after all data are loaded?
Thanks,
Bill
_______________________________________________
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