• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Core Data, binding & selecting table rows upon document open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Core Data, binding & selecting table rows upon document open
      • From: mmalcolm crawford <email@hidden>
References: 
 >Core Data, binding & selecting table rows upon document open (From: Modesitt Software <email@hidden>)
 >Re: Core Data, binding & selecting table rows upon document open (From: Chris Hanson <email@hidden>)

  • Prev by Date: Re: How to change the strings in application menu
  • Next by Date: NSTableColumn Bindings and italics
  • Previous by thread: Re: Core Data, binding & selecting table rows upon document open
  • Next by thread: Re: Core Data, binding & selecting table rows upon document open
  • Index(es):
    • Date
    • Thread