Re: "to-many" bindings in Interface Builder
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.