• 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: Binding Master to Detail in a NSTableView With CoreData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding Master to Detail in a NSTableView With CoreData


  • Subject: Re: Binding Master to Detail in a NSTableView With CoreData
  • From: Martin van-Eerde <email@hidden>
  • Date: Fri, 16 Feb 2007 13:25:40 +0000

OK,

I have solved the problem where the changed relationship would change in all columns by changing the selectedObject binding from Controller = selection to Controller = arrangedObjects.

Not sure i quite understand this as both quoted tutorials have the detail set to Controller = selection, the only difference with the tutorial is that the detail components are separate from the master NSTableView where my detail components are in the same table.


On 16 Feb 2007, at 01:56, email@hidden wrote:

Message: 8 Date: Fri, 16 Feb 2007 00:02:04 +0000 From: Martin van-Eerde <email@hidden> Subject: Binding Master to Detail in a NSTableView With CoreData To: email@hidden Message-ID: <email@hidden> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi all,

I am trying to create a master detail view in one NSTableView, I have
two text field cells which are the master values  and then two
NSPopUpButtons for the detail, which are bound to two different
lookup entities.

The two master fields have a attribute value binding to the master
entity and the two detail popups have
content bound to their controllers, contentValue bound to their
controllers and a specific attribute and selectedObject bound to the
master entity with selection and the model key path to the relationship.


I can select the popup details ok, but if I leave the row the detail
popups go blank.  Also if I have more than one row, selecting a
detail on one row changes the detail in all rows for that column.

I have been following the instructions at:
http://devworld.apple.com/documentation/Cocoa/Conceptual/
CocoaBindings/Tasks/onerelation.html#//apple_ref/doc/uid/20002301-
BCICADHC
and:
http://cocoadevcentral.com/articles/000085.php

Many thanks for any pointers, Martin

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Prev by Date: Binding NSTreeController to NSArray
  • Next by Date: How to get a NSPopUpButtonCell bound to a CoreData attribute?
  • Previous by thread: Binding Master to Detail in a NSTableView With CoreData
  • Next by thread: NSWindowController versus other NIB Owners
  • Index(es):
    • Date
    • Thread