Thanks to all who helped me on and off the list. After a good night sleep and a
day off coding, I think I finally got it :-)
> On 28/07/2011, at 23:15 , Quincey Morris wrote:
>
> So how does the array controller enter this picture at all? It's a glue
> object (aka "mediating controller") whose
On Jul 28, 2011, at 20:00, Andre Masse wrote:
> Is this can be done using bindings or should I stop fighting the framework
> and and use a datasource?
It can be done with bindings***. All you've done is clarified that "totalPrice"
isn't a derived property after all. So, you make a regular prope
Thanks a lot for the clarifications about the role of the NSArrayController. I
somehow got confused about the whole binding thing, its not so muddy now. Now,
the example I gave was a bad simplification of the real thing as the
"totalPrice" is more a "proposedTotalPrice". It's based on a calculat
Hi,
On 29 Jul 11, at 10:51am, cocoa-dev-requ...@lists.apple.com wrote:
> For example, lets say I have a tableview with 3 columns: quantity, unit price
> and total. I want to calculate total using (quantity * unit price). Pretty
> simple using a datasource but I've no idea how to do that with bi
On Jul 28, 2011, at 15:48, Andre Masse wrote:
> For example, lets say I have a tableview with 3 columns: quantity, unit price
> and total. I want to calculate total using (quantity * unit price). Pretty
> simple using a datasource but I've no idea how to do that with bindings
> (using an NSArra
Try value transformers
Thanks
Rajendran P
On 7/29/11 6:18 AM, "Andre Masse" wrote:
Well, I may end up doing this...
Thanks
Andre Masse
On 28/07/2011, at 18:52 , Thomas Davie wrote:
>
> On 28 Jul 2011, at 23:48, Andre Masse wrote:
>
>> Hi,
>>
>> For example, lets say I have a tableview wit
Well, I may end up doing this…
Thanks
Andre Masse
On 28/07/2011, at 18:52 , Thomas Davie wrote:
>
> On 28 Jul 2011, at 23:48, Andre Masse wrote:
>
>> Hi,
>>
>> For example, lets say I have a tableview with 3 columns: quantity, unit
>> price and total. I want to calculate total using (quant
On 28 Jul 2011, at 23:48, Andre Masse wrote:
> Hi,
>
> For example, lets say I have a tableview with 3 columns: quantity, unit price
> and total. I want to calculate total using (quantity * unit price). Pretty
> simple using a datasource but I've no idea how to do that with bindings
> (using