Mac Developer Library

Developer

WebKit Framework Reference WebKit Constants Reference

Options
Deployment Target:

On This Page
Language:

WebKit Constants Reference

This document describes the types and constants found in the WebKit.

Constants

Global Errors

  • Policy errors that can occur.

    Declaration

    Swift

    var WebKitErrorCannotShowMIMEType: Int { get } var WebKitErrorCannotShowURL: Int { get } var WebKitErrorFrameLoadInterruptedByPolicyChange: Int { get }

    Objective-C

    typedef enum { WebKitErrorCannotShowMIMEType = 100, WebKitErrorCannotShowURL = 101, WebKitErrorFrameLoadInterruptedByPolicyChange = 102, };

    Constants

    • WebKitErrorCannotShowMIMEType

      WebKitErrorCannotShowMIMEType

      Indicates that a MIME type is not supported.

      Available in OS X v10.2 and later.

    • WebKitErrorCannotShowURL

      WebKitErrorCannotShowURL

      Indicates a failure in changing a location.

      Available in OS X v10.2 and later.

    • WebKitErrorFrameLoadInterruptedByPolicyChange

      WebKitErrorFrameLoadInterruptedByPolicyChange

      Indicates that a frame load was interrupted by a policy change.

      Available in OS X v10.2 and later.

    Discussion

    These errors occur when applying policy decisions.

  • Plug-in and Java errors that can occur.

    Declaration

    Swift

    var WebKitErrorCannotFindPlugIn: Int { get } var WebKitErrorCannotLoadPlugIn: Int { get } var WebKitErrorJavaUnavailable: Int { get }

    Objective-C

    typedef enum { WebKitErrorCannotFindPlugIn = 200, WebKitErrorCannotLoadPlugIn = 201, WebKitErrorJavaUnavailable = 202, };

    Constants

    • WebKitErrorCannotFindPlugIn

      WebKitErrorCannotFindPlugIn

      Indicates a plug-in could not be found.

      Available in OS X v10.3 and later.

    • WebKitErrorCannotLoadPlugIn

      WebKitErrorCannotLoadPlugIn

      Indicates a plug-in could not be loaded.

      Available in OS X v10.3 and later.

    • WebKitErrorJavaUnavailable

      WebKitErrorJavaUnavailable

      Indicates that Java is unavailable.

      Available in OS X v10.2 and later.

    Discussion

    These errors occur when loading pages containing plug-in or Java content.

  • Other WebKit errors that can occur.

    Declaration

    Swift

    var WebKitErrorDomain: NSString! let WebKitErrorMIMETypeKey: NSString! let WebKitErrorPlugInNameKey: NSString! let WebKitErrorPlugInPageURLStringKey: NSString!

    Objective-C

    extern NSString *WebKitErrorDomain; extern NSString * const WebKitErrorMIMETypeKey; extern NSString * const WebKitErrorPlugInNameKey; extern NSString * const WebKitErrorPlugInPageURLStringKey;

    Constants

    • WebKitErrorDomain

      WebKitErrorDomain

      A string used by NSError to indicate that the error was originated by a WebKit class.

      Available in OS X v10.2 and later.

    • WebKitErrorMIMETypeKey

      WebKitErrorMIMETypeKey

      A dictionary key whose value is a string of the TYPE attribute.

      Available in OS X v10.2 and later.

    • WebKitErrorPlugInNameKey

      WebKitErrorPlugInNameKey

      A dictionary key whose value is a string containing the plug-in's name.

      Available in OS X v10.2 and later.

    • WebKitErrorPlugInPageURLStringKey

      WebKitErrorPlugInPageURLStringKey

      A dictionary key whose value is a URL string of the PLUGINSPAGE attribute.

      Available in OS X v10.2 and later.

    Discussion

    These errors occur while loading content.