-[NSTableView setSortDescriptors:] should be null_resettable

Originator:thedov
Number:rdar://23319738 Date Originated:29-Oct-2015 03:47 PM
Status:Open Resolved:
Product:OS X SDK Product Version:10.11
Classification:UI/Usability Reproducible:Always
 
Summary:
I’ve been using -[NSTableView setSortDescriptors:nil] for years to reset a table view’s sort descriptors. It’s not attributed on 10.11, so it falls under the nonnull assumption and causes warnings in my code. It should be marked as null_resettable. This null-resetting is also undocumented, so the documentation should be updated accordingly.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!