Re: Key Paths @count and mutablestrings

2008-11-05 Thread Benjamin Stiglitz
I've cleared out all my other code and associated problems, and I'm at the same point, key path orderReference works, but [EMAIL PROTECTED] doesn't? [Session started at 2008-11-05 20:42:25 +.] 2008-11-05 20:42:28.462 powizard[22921] [<_NSFaultingMutableSet 0x165e910> addObserver:forKeyP

Re: Key Paths @count and mutablestrings

2008-11-05 Thread Amy Heavey
On 4 Nov 2008, at 17:32, Benjamin Stiglitz wrote: PurchaseOrder is an Entity, with a relationship called products to the PurchaseOrderItems Entity which lists the actual items on the order. I'd like a column in my Purchase Order tabel to display the number of items in the order, so I've tri

Re: Key Paths @count and mutablestrings

2008-11-04 Thread Graham Cox
On 5 Nov 2008, at 5:28 am, Amy Gibbs wrote: I can connect it in IB, my problem is how to reference it / use the objects in it in the code. In IB I already have the Array Controller called Purchase Order Items. If you have an IBOutlet, let's call it 'myPurchaseOrderItems', you can see an

Re: Key Paths @count and mutablestrings

2008-11-04 Thread Amy Gibbs
On 4 Nov 2008, at 18:21, Volker in Lists wrote: Hi, Is there an easy way to access the existing Array Controller from the code? I have a suitable Array Controller called Purchase Order Items Array Controller in IB, but I don't see a way to reference this in the code. The Array Controll

Re: Key Paths @count and mutablestrings

2008-11-04 Thread Volker in Lists
Hi, Is there an easy way to access the existing Array Controller from the code? I have a suitable Array Controller called Purchase Order Items Array Controller in IB, but I don't see a way to reference this in the code. The Array Controller is bound to the selection of another Array Con

Re: Key Paths @count and mutablestrings

2008-11-04 Thread Amy Heavey
On 4 Nov 2008, at 17:32, Benjamin Stiglitz wrote: On Mon, Nov 03, 2008 at 06:55:24PM +, Amy Heavey wrote: … How do I access the count of a to-many relationship? You’ve got that backwards; you want [EMAIL PROTECTED] Fantastic! Thank You, Do you mean print out on a printer, or just di

Re: Key Paths @count and mutablestrings

2008-11-04 Thread Benjamin Stiglitz
On Mon, Nov 03, 2008 at 06:55:24PM +, Amy Heavey wrote: > PurchaseOrder is an Entity, with a relationship called products to the > PurchaseOrderItems Entity which lists the actual items on the order. I'd > like a column in my Purchase Order tabel to display the number of items > in the order

Key Paths @count and mutablestrings

2008-11-03 Thread Amy Heavey
Hi, I'm afraid I have a couple more questions :( Key Paths Bindings I've been quite sucessful in setting up my bindings using key paths, but now I'm trying to use @count. I have a table that displays a list of PurchaseOrders. PurchaseOrder is an Entity, with a relationship called products t