Accesses the unfiltered items and filter in a list-panel
list-panel-items-and-filter accesses the unfiltered items and the state of the filter in the list panel
simultaneously. It is especially useful for setting the filter state and the items without flickering.
(values (list-panel-unfiltered-items list-panel ) (list-panel-filter-state list-panel ))
The return value filter-state is the same type as the state that is used in filtering-layout.
(setf (list-panel-items-and-filter list-panel ) (values new-items new-filter-state ))
(progn (setf (list-panel-unfiltered-items list-panel ) new-items ) (setf (list-panel-filter-state list-panel ) new-filter-state ))
have the same ultimate effect on
, but the latter form will filter the
with the old filter and display the result and then filter the
again with the
(setf list-panel-items-and-filter) filters the
just once, with the
CAPI User Guide and Reference Manual (Macintosh version) - 25 Feb 2015