Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parity: NSSortDescriptor & _CFSwiftArrayReplaceValues #2234

Merged
merged 2 commits into from
May 10, 2019
Merged

Parity: NSSortDescriptor & _CFSwiftArrayReplaceValues #2234

merged 2 commits into from
May 10, 2019

Conversation

millenomi
Copy link
Contributor

@millenomi millenomi commented May 8, 2019

  • Implement the parts that can be implemented and annotate the rest with diagnostics.

  • Add a partially source-compatible version of init(keyPath:ascending:) that works with Comparable values.

  • A limited set of Cocoa model classes (the ones that have a compare(_:) method) now conforms to Comparable and can be used with the source-compatible initializer.

  • Implement the sort methods that take sort descriptors on the collection classes.

  • Add _SwiftBridgeable protocol conformance to a couple classes that had it missing.

  • Fix _CFSwiftArrayReplaceValues to actually work, and ensure CFArraySort() can detect that the array is actually mutable.

  • Ensure that NSOrderedSet invokes __SwiftValue’s fetching setup instead of returning internal storage.

 - Implement the parts that can be implemented and annotate the rest with diagnostics.

 - Add a partially source-compatible version of init(keyPath:ascending:) that works with Comparable values.

 - A limited set of Cocoa model classes (the ones that have a compare(_:) method) now conforms to Comparable and can be used with the source-compatible initializer.

 - Implement the sort methods that take sort descriptors on the collection classes.

 - Add _SwiftBridgeable protocol conformance to a couple classes that had it missing.

 - Fix _CFSwiftArrayReplaceValues to actually work, and ensure CFArraySort() can detect that the array is actually mutable.

 - Ensure that NSOrderedSet invokes __SwiftValue’s fetching setup instead of returning internal storage.
@millenomi
Copy link
Contributor Author

@swift-ci please test

@millenomi
Copy link
Contributor Author

@swift-ci please test

@millenomi
Copy link
Contributor Author

@millenomi
Copy link
Contributor Author

@swift-ci please test

@millenomi millenomi merged commit dd396f1 into apple:master May 10, 2019
@ikesyo
Copy link
Collaborator

ikesyo commented May 30, 2019

I've filed a ticket related to this change: https://bugs.swift.org/browse/SR-10798.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants