|
Hwa Jong Oh,
> My version of default sortBlock is
> [ <a sorting test expression> ] on: Error do: [:e| true].
>
> Do you agree?
Not really. Ignoring errors is OK as long as you have made a deliberate
decision to do it but having it as a default is a bit dangerous, IMHO.
There are other ways to prevent the problem though. Defining a #<= method in
the class of the objects that appear in the list will prevent the walkbacks.
If you don't want any sorting to be available, or the list classes are
unsortable, then turning it off completely by setting #hasSortHeaders to
false would seem to be the most user friendly way of proceeding (I have
occasionally wondered if that might not be a better default for Dolphin
ListViews).
Ian
|