Sample code for 30+ languages & platforms
Swift Requires Chilkat v11.0.0+

Transition from MailMan.GetUidls to MailMan.FetchUidls

Provides instructions for replacing deprecated GetUidls method calls with FetchUidls.

Chilkat Swift Downloads

Swift

func chilkatTest() {
    var success: Bool = false

    let mailman = CkoMailMan()!

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  The GetUidls method is deprecated:

    var sa: CkoStringArray? = mailman.getUidls()
    if mailman.lastMethodSuccess == false {
        print("\(mailman.lastErrorText!)")
        return
    }

    //  ...
    //  ...

    sa = nil

    //  ------------------------------------------------------------------------
    //  Do the equivalent using FetchUidls.
    //  Your application creates a new, empty StringTable object which is passed 
    //  in the last argument and filled upon success.

    let st = CkoStringTable()!
    success = mailman.fetchUidls(uidls: st)
    if success == false {
        print("\(mailman.lastErrorText!)")
        return
    }


}