FTDataSource API

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

FTDataSource API

Uko2
Hi,

I’m a bit confused because FTDataSource has two methods #cellColumn:row: and #elementAt: with subclassResponsibility. I understand when FTSimpleDataSource implements #elementAt: and uses it in #cellColumn:row:. But as #cellColumn:row: is more general, why is there #elementAt: defined in FTDataSource?

Uko
Reply | Threaded
Open this post in threaded view
|

Re: FTDataSource API

EstebanLM
mmm… that’s an error :)
I’m using (wrongly) #elementAt: to pick up drag&drop passengers in FTTableMorph>>#startDrag:, and that is a mistake (it should call some #passegerAt: method).

can you fill a bug report, please?

Esteban



> On 09 Sep 2015, at 17:03, Yuriy Tymchuk <[hidden email]> wrote:
>
> Hi,
>
> I’m a bit confused because FTDataSource has two methods #cellColumn:row: and #elementAt: with subclassResponsibility. I understand when FTSimpleDataSource implements #elementAt: and uses it in #cellColumn:row:. But as #cellColumn:row: is more general, why is there #elementAt: defined in FTDataSource?
>
> Uko


Reply | Threaded
Open this post in threaded view
|

Re: FTDataSource API

Uko2
Done https://pharo.fogbugz.com/f/cases/16537/FTDataSource-elementAt-should-not-be-there

> On 09 Sep 2015, at 17:48, Esteban Lorenzano <[hidden email]> wrote:
>
> mmm… that’s an error :)
> I’m using (wrongly) #elementAt: to pick up drag&drop passengers in FTTableMorph>>#startDrag:, and that is a mistake (it should call some #passegerAt: method).
>
> can you fill a bug report, please?
>
> Esteban
>
>
>
>> On 09 Sep 2015, at 17:03, Yuriy Tymchuk <[hidden email]> wrote:
>>
>> Hi,
>>
>> I’m a bit confused because FTDataSource has two methods #cellColumn:row: and #elementAt: with subclassResponsibility. I understand when FTSimpleDataSource implements #elementAt: and uses it in #cellColumn:row:. But as #cellColumn:row: is more general, why is there #elementAt: defined in FTDataSource?
>>
>> Uko
>
>