• 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: Bindings in sheet window not working (was: Tables showing different kinds of core data entities)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings in sheet window not working (was: Tables showing different kinds of core data entities)


  • Subject: Re: Bindings in sheet window not working (was: Tables showing different kinds of core data entities)
  • From: Matteo Rossi <email@hidden>
  • Date: Wed, 26 Apr 2006 23:50:57 +0200

Just like I thought: the problem was that I ran the sheet like an application modal dialog which prevented the core data architecture to work properly. It's been solved by running the sheet window like a document modal dialog.
Thank you
Matteo Rossi



On Apr 26, 2006, at 8:13 AM, Matteo Rossi wrote:


All is perfectly working. First problem: if I create a second NSArrayController for Rectangle (rectangleController2) and I bind a table view to this new one I can't see Rectangle entities I have created with the first NSArrayController (rectangleController).

You probably just need your array controller (the one that's not reflecting the other's changes) to -fetch:. The 'problem' controller is only showing you the results of its last fetch.


Here comes the second problem: I want to display all the entities I create (both rectangles or circles) in a single table with two columns: one for a counter and a second for areas. I have tried creating a NSArrayController for Shape (shapeController) and bind it to my tableview, but it doesn't work: rectangles and circles created don't appear in this new table. What's the problem ?

As far as I know this should work. I've done something similar with an "Action" abstract entity with "Submission" and "Response" derived entities. Actions shared the initiation date and completion date, as well as a descriptive string, and an "person" relationship for the initiator. Works just fine this way and I can't remember doing anything special to get it to work. Then again, it's been eight months since I've even touched that project ... :-)


Are you sure everything's connected right? What happens if you just pull it all out and do it again? :-) I know, not a very appealing notion, but sometimes it really pays off.

  Hope this is some help.

--
I.S.



_______________________________________________ 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
References: 
 >Tables showing different kinds of core data entities (From: Matteo Rossi <email@hidden>)
 >Re: Tables showing different kinds of core data entities (From: "I. Savant" <email@hidden>)

  • Prev by Date: temporarily disabling undo
  • Next by Date: Re: Flipping over coordinate conversion
  • Previous by thread: Bindings in sheet window not working (was: Tables showing different kinds of core data entities)
  • Next by thread: [NSPortCoder sendBeforeTime:sendReplyPort:] timed out
  • Index(es):
    • Date
    • Thread