[Pharo-dev] Two tables that share the same data source!?

Aliaksei Syrel alex.syrel at gmail.com
Mon Aug 7 20:19:44 EDT 2017


Hello Elhamer,

Do you have an idea when it might be useful to have two lists representing
the same datasource?
We have this feature in bloc (see video in attachment) but I didn't
encounter a real-life use-case yet...

Cheers,
Alex
​
 Bloc-TwoListsOneDataSource.mov
<https://drive.google.com/file/d/0B-bMBVDOi3oTVWpYdzF5dmlIT2Ftbm9yUVBpazNMVE9HMFhr/view?usp=drive_web>
​
On 8 August 2017 at 02:16, Aliaksei Syrel <alex.syrel at gmail.com> wrote:

> Hello Elhamer,
>
> Do you have an idea when it might be useful to have two lists representing
> the same datasource?
> We have this feature in bloc (see video in attachment) but I didn't
> encounter a real-life use-case yet...
>
> Cheers,
> Alex
>
> On 8 August 2017 at 01:36, Elhamer <abdelkhalekdev at gmail.com> wrote:
>
>> Hello everybody,
>>
>> How common is it for multiple tables (FastTables) to have the same
>> datasource ?
>>
>> The FTDataSource has a instance variable to refer a table:
>>
>> ````
>> Object subclass: #FTDataSource
>>         instanceVariableNames: 'table'
>>         classVariableNames: ''
>>         package: 'Morphic-Widgets-FastTable-DataSource'
>> ```
>>
>>
>> which makes it impossible for several tables to have the same data source.
>> the code of the data source is also coupled to the ft code which also
>> makes
>> it harder to extend.
>>
>> I've tried to go down the rabbit hole and decouple the data source from
>> the
>> table but things went messy. So i would like to know how common it is for
>> several tables to share the same ds, and does that worth going the extra
>> mile ?
>>
>> Thanks,
>> Elhamer.
>>
>>
>>
>> --
>> View this message in context: http://forum.world.st/Two-tabl
>> es-that-share-the-same-data-source-tp4959153.html
>> Sent from the Pharo Smalltalk Developers mailing list archive at
>> Nabble.com.
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20170808/e609f4b4/attachment.html>


More information about the Pharo-dev mailing list