Contents

outlineView(_:sortDescriptorsDidChange:)

Invoked by an outline view to notify the data source that the descriptors changed and the data may need to be resorted.

Declaration

@MainActor optional func outlineView(_ outlineView: NSOutlineView, sortDescriptorsDidChange oldDescriptors: [NSSortDescriptor])

Parameters

  • outlineView:

    The outline view that sent the message.

  • oldDescriptors:

    An array that contains the previous descriptors.

Discussion

The data source typically sorts and reloads the data, and adjusts the selections accordingly. If you need to know the current sort descriptors and the data source does not itself manage them, you can get outlineView’s current sort descriptors by sending it a sortDescriptors message.

See Also

Instance Methods