-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Stub out new KeyPath APIs in NSSortDescriptor #1120
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,10 +35,13 @@ open class NSSortDescriptor: NSObject, NSSecureCoding, NSCopying { | |
|
||
open var key: String? { NSUnimplemented() } | ||
open var ascending: Bool { NSUnimplemented() } | ||
var keyPath: AnyKeyPath? { NSUnimplemented() } | ||
|
||
open func allowEvaluation() { NSUnimplemented() } // Force a sort descriptor which was securely decoded to allow evaluation | ||
|
||
public init(key: String?, ascending: Bool, comparator cmptr: Comparator) { NSUnimplemented() } | ||
convenience init<Root, Value>(keyPath: KeyPath<Root, Value>, ascending: Bool) { NSUnimplemented() } | ||
convenience init<Root, Value>(keyPath: KeyPath<Root, Value>, ascending: Bool, comparator cmptr: @escaping Comparator) { NSUnimplemented() } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I took the declaration directly from here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Actually incorrect 🙂 The symblos in the API documents are all You should check the documents:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perfect, thanks for taking the time to explain that :) I'll update shortly with the correct access controls, I'll also have a read through the documentation you've provided. Thanks again! :) |
||
|
||
open var comparator: Comparator { NSUnimplemented() } | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be
open
.