Sorting ListViews

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

Sorting ListViews

Louis Sumberg-2
I'm getting the same error in all my apps (actually, DSDN too) that use
listviews, when I try to sort a column.  The walkback is below.  It looks
like the problem is in ListView>>setColumnIcon:atIndex: where imageManager
is nil.  I see this is a new method, but that's as far as I got.

7:21:31 PM, 4/5/02: 'UndefinedObject does not understand #indexOfImage:'
UndefinedObject(Object)>>doesNotUnderstand:
ListView>>setColumnIcon:atIndex:
ListView>>lvnColumnClick:
ListView>>nmNotify:
ContainerView(View)>>wmNotify:wParam:lParam:
ContainerView(View)>>dispatchMessage:wParam:lParam:
[] in InputState>>wndProc:message:wParam:lParam:cookie:
BlockClosure>>ifCurtailed:
ProcessorScheduler>>callback:evaluate:
InputState>>wndProc:message:wParam:lParam:cookie:
ListView(ControlView)>>defaultWindowProcessing:wParam:lParam:
ListView(View)>>dispatchMessage:wParam:lParam:
[] in InputState>>wndProc:message:wParam:lParam:cookie:
BlockClosure>>ifCurtailed:
ProcessorScheduler>>callback:evaluate:
InputState>>wndProc:message:wParam:lParam:cookie:
ShellView(View)>>isDialogMessage:
ShellView>>preTranslateMouseInput:
ShellView(View)>>preTranslateMessage:
InputState>>preTranslateMessage:
InputState>>pumpMessage:
InputState>>loopWhile:
InputState>>mainLoop
[] in InputState>>forkMain
ExceptionHandler(ExceptionHandlerAbstract)>>markAndTry
[] in ExceptionHandler(ExceptionHandlerAbstract)>>try:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
ExceptionHandler(ExceptionHandlerAbstract)>>try:
BlockClosure>>on:do:
[] in BlockClosure>>newProcess


Reply | Threaded
Open this post in threaded view
|

Re: Sorting ListViews

Ian Bartholomew-3
Louis,

>  I'm getting the same error in all my apps (actually, DSDN too) that use
> listviews, when I try to sort a column.  The walkback is below.  It looks
> like the problem is in ListView>>setColumnIcon:atIndex: where imageManager
> is nil.  I see this is a new method, but that's as far as I got.

It appears that you should now prevent the display of icons in a list by
setting the list's main #getImageBlock aspect to nil (a much better scheme
IMO) rather than the ImageManager.  I've just been through all my affected
packages, done the above and reset the image manager (using "self
imageManager: IconImageManager current" on the list view) - all seems to
work correctly now.

Ian


Reply | Threaded
Open this post in threaded view
|

Re: Sorting ListViews

Louis Sumberg-2
Ian,

> It appears that you should now prevent the display of icons in a list by
> setting the list's main #getImageBlock aspect to nil ...
> and reset the image manager (using "self
> imageManager: IconImageManager current" on the list view).

Thanks, that does the trick alright.  It's also nice to see that reverse
sorting is now implemented in the base system.

-- Louis