NSSortDescriptor with Selector for CloudKit in Swift -


i trying sort results of cloudkit query (a ckrecord string full of text) using nssortdescriptor. sort relevance (i.e. how keywords appear in said text). trying selector pointing function decide text relevant.

when try this, xcode keeps making me add @obj front of selector , function. selector not correctly taking perimeters.

is possible in pure swift, or need use objective-c? if so, should perimeters like?

note: not opposed using objective-c if have to, have never done before.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -