• 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: Another Core Data + table view question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another Core Data + table view question


  • Subject: Re: Another Core Data + table view question
  • From: Alex Reynolds <email@hidden>
  • Date: Sat, 18 Aug 2007 13:26:14 -0400

On Aug 18, 2007, at 12:32 PM, mmalc crawford wrote:

It seems that you haven't fully grasped Core Data or Cocoa bindings, and trying to use the two before you have mastered either is simply going to cause further confusion as when things don't work as you would wish you're not going to know where the problem lies.

I haven't fully grasped either. The documentation is okay, but not very clear in some areas, which is why I am posting questions to this mailing list, to focus in on the areas that I need to learn. Thanks for the link.


Also, I note that if I deselect the Server entity, this does not refresh the Display table view, which should then no longer render any of the Display entity data.

If there's a relationship Server ->> Display, and the Display table is supposed to be displaying the contents of the currently-selected Server, then you haven't set up the binding correctly for the contentArray for the Display table. This was discussed on the list within the last day or two.

If I go into Interface Builder and click on the Displays NSArrayController, selecting "Binding" from the Inspector, there is a "contentArray" binding available, to which I have applied the following settings:


Bind to: Servers
Controller key: selection
Model key path: display

The "display" key is the relationship in Servers to a particular display.

When I run my application, there is no data shown in the Display table view, whether or not I make a Server selection.

From reading this:

http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/ Articles/cdTroubleshooting.html

It looks like I need to bind "contentSet" and not "contentArray" when binding a relationship between NSArrayController objects?

I then tried to bind these settings to the Displays "contentSet":

Bind to: Servers
Controller key: selection
Model key path: display

When I run my application, there is no data shown in the Display table view, whether or not I make a Server selection.

-Alex

----------------------------------------------------------------------
Alex Reynolds, M. Biot.
217 Leidy Building / 6013
Department of Biology
University of Pennsylvania
Philadelphia, PA 19104

V: +1 215 573.2818
F: +1 215 898.8780
E: mailto:email@hidden
W: http://www.bio.upenn.edu/computing/

_______________________________________________

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: Another Core Data + table view question
      • From: mmalc crawford <email@hidden>
References: 
 >Another Core Data + table view question (From: Alex Reynolds <email@hidden>)
 >Re: Another Core Data + table view question (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: CoverFlow on 10.4
  • Next by Date: textStorage readFromURL does not like blanks
  • Previous by thread: Re: Another Core Data + table view question
  • Next by thread: Re: Another Core Data + table view question
  • Index(es):
    • Date
    • Thread