FROM : Hamish Allan
DATE : Tue May 20 21:14:03 2008
On Tue, May 20, 2008 at 5:21 PM, David Dunham <<email_removed>> wrote:
> On 19 May 2008, at 16:14, Hamish Allan wrote:
>
>> The sum total is dependent on the filtered collection of topics, which
>> in turn is dependent on the value of the search field.
>
> Seems really backwards to bind my data model to a toolbar item that may or
> may not be present.
The sum total should not be part of your data model, given that it
depends on something in the view.
> There's also a related property: the total number of topics. This needs to
> be updated from time to time, and also doesn't seem dependent on any other
> property.
Is it not dependent on the unfiltered collection of topics?
Hamish
DATE : Tue May 20 21:14:03 2008
On Tue, May 20, 2008 at 5:21 PM, David Dunham <<email_removed>> wrote:
> On 19 May 2008, at 16:14, Hamish Allan wrote:
>
>> The sum total is dependent on the filtered collection of topics, which
>> in turn is dependent on the value of the search field.
>
> Seems really backwards to bind my data model to a toolbar item that may or
> may not be present.
The sum total should not be part of your data model, given that it
depends on something in the view.
> There's also a related property: the total number of topics. This needs to
> be updated from time to time, and also doesn't seem dependent on any other
> property.
Is it not dependent on the unfiltered collection of topics?
Hamish






Cocoa mail archive

