Platforms to show: All Mac Windows Linux Cross-Platform
WKHTTPCookieStoreMBS.AllCookies as NSHTTPCookieMBS()
Function:
Fetches all stored cookies.
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | WebKit2 | MBS Mac64bit Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Example:
Dim CookieStore As WKHTTPCookieStoreMBS = WKWebViewControlMBS1.WKWebView.HTTPCookieStore
Dim cookies() As NSHTTPCookieMBS = CookieStore.AllCookies
Dim cookie As NSHTTPCookieMBS = cookies(0)
// now check in debugger
Break
WKHTTPCookieStoreMBS.Constructor(WKWebView as WKWebViewMBS)
Function:
The constructor.
Notes:
Creates an object for the http cookie store used by web view.
Adds an observer to the cookie store to call DidChange event.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | WebKit2 | MBS Mac64bit Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Notes:
Creates an object for the http cookie store used by web view.
Adds an observer to the cookie store to call DidChange event.
WKHTTPCookieStoreMBS.deleteCookie(cookie as NSHTTPCookieMBS, wait as boolean = true)
Function:
Deletes the specified cookie.
Notes:
By default waits for this to complete.
Otherwise this is set asynchronously.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | WebKit2 | MBS Mac64bit Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
By default waits for this to complete.
Otherwise this is set asynchronously.
WKHTTPCookieStoreMBS.Destructor
Function:
The destructor.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | WebKit2 | MBS Mac64bit Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
WKHTTPCookieStoreMBS.setCookie(cookie as NSHTTPCookieMBS, wait as boolean = true)
Function:
Sets a cookie.
Notes:
By default waits for this to complete.
Otherwise this is set asynchronously.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | WebKit2 | MBS Mac64bit Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Notes:
By default waits for this to complete.
Otherwise this is set asynchronously.
The items on this page are in the following plugins: MBS Mac64bit Plugin.

Links
MBS Xojo Plugins