• 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
NSTableView Data Binding Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView Data Binding Problem


  • Subject: NSTableView Data Binding Problem
  • From: Chris Schmitt <email@hidden>
  • Date: Sun, 10 Feb 2008 00:03:03 -0500

I have an NSTableView hooked up to an NSArrayController. The columns in the table view are bound to the array controllers arrangedObjects. The array controller is hooked up to my coredata model and is being driven from the selection in an NSOutlineView. If I click on a row in outline view the table displays the data and everything is working fine. But if I set the selected row programmatically using the setSelectionIndexPath(0) to select the first row then the table displays nothing. I have verfied that the content and arrangedObjects of the array controller contain the data, but the table still does not display anything. I have even tried to explicitly call the setNeedsDisplay method on the table view, and I still get nothing.

I am setting the selection programmatically so that there is always a row selected if the outline view has data.. Also I have verified that the outlineViewSelectionDidChange notificaiton is sent out when I change the selection programmatically.

Any advice would be great.. I am completely lost on this one as it seems like it should work.

Thanks in advance for your help.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTableView Data Binding Problem
      • From: John Terranova <email@hidden>
  • Prev by Date: Re: Logging Mechanisms in Cocoa
  • Next by Date: Re: references to controllers in document based applications
  • Previous by thread: Re: Memory management with arrays
  • Next by thread: Re: NSTableView Data Binding Problem
  • Index(es):
    • Date
    • Thread