Forces a sort descriptor that was securely decoded to allow evaluation.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
When securely decoding
NSSortDescriptor objects that are encoded using
NSSecureCoding, evaluation is disabled because it is potentially unsafe to evaluate descriptors you get out of an archive.
Before you enable evaluation, you should validate key paths, selectors, and related properties to ensure no erroneous or malicious code will be executed. Once you’ve preflighted the sort descriptor, you can enable the sort descriptor for evaluation by calling
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software