• 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: 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


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

  • Prev by Date: Re: Double Fun
  • Next by Date: Re: problem with [NSData bytes] on Intel
  • Previous by thread: 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