• 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: Mulitple Bindings and refreshing tables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mulitple Bindings and refreshing tables


  • Subject: Re: Mulitple Bindings and refreshing tables
  • From: Rob Keniger <email@hidden>
  • Date: Mon, 14 Apr 2008 08:13:53 +1000


On 14/04/2008, at 7:17 AM, antikraft clover wrote:
I have several tables that are bound to models. All these models are
related through a single column (sum of all items in column A of Table
1 gives the value of column A of Table 2 and so on). The bindings work
fine. But,when I edit the 'lowest' table's column A, I would like this
change to propogate to the 'higher' tables. Since, I am not
implementing the delegates of any table (all are connected via
bindings), the table reload their view only when I click on any one of
them.

Is there a "best way" of doing this?


It sounds like you are binding the tables directly to the model objects. While you can do this, it's not generally recommended. You will get much better results if you instead bind to one of the special bindings controllers such as NSArrayController, which is the "normal" method of using bindings.

I would highly recommend reading the Hillegass book as it describes how to use bindings correctly.

--
Rob Keniger



_______________________________________________

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


References: 
 >Mulitple Bindings and refreshing tables (From: "antikraft clover" <email@hidden>)

  • Prev by Date: Re: Subclassing NSScroller
  • Next by Date: A question about Tabviews and tabview items
  • Previous by thread: Mulitple Bindings and refreshing tables
  • Next by thread: Get "end-editing" notice from simple NSTextField?
  • Index(es):
    • Date
    • Thread