• 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: "to-many" bindings in Interface Builder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "to-many" bindings in Interface Builder


  • Subject: Re: "to-many" bindings in Interface Builder
  • From: John <email@hidden>
  • Date: Sat, 17 Apr 2004 09:48:43 +0100

Hi,
Yes, I'm not great at explaining myself... I will give an example of what I am trying to do...

I have an application that models an invoicing system.

I have a table of customers, each customer can have many invoices, and each invoice can have many invoiceLineItems.

I can use bindings with the customers and their to-one data using an NSArrayController bound to my Customer class. But how do I use bindings to link up my Invoices and my InvoiceLineItems?

Thanks,
John


On 17 Apr 2004, at 05:58, mmalcolm crawford wrote:

On Apr 16, 2004, at 11:43 AM, John wrote:

Is it possible to do to-many bindings in Interface builder, I came across this article in the cocoa docs, which seems to imply that you can.
http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Concepts/OOModel.html
However I have been unable to come up with a doc that describes how to do this.
If it is possible could somebody please point out some docs on this. Specifically I am interested in the Account - Transactions relationship they are modelling in the above doc.

It's not clear what you mean by "do to-many bindings". You can represent a to-many relationship using an NSArrayController with its contentArray bound to the name of the relationship, and there are several examples of that. What is it that you are unable to achieve?

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: "to-many" bindings in Interface Builder
      • From: Allan Odgaard <email@hidden>
References: 
 >"to-many" bindings in Interface Builder (From: John <email@hidden>)
 >Re: "to-many" bindings in Interface Builder (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Network Address in Cocoa
  • Next by Date: compiler optimization level
  • Previous by thread: Re: "to-many" bindings in Interface Builder
  • Next by thread: Re: "to-many" bindings in Interface Builder
  • Index(es):
    • Date
    • Thread