Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Next Page > Hide TOC

Web Kit Constants Reference

Framework
WebKit/WebKit.h
Declared in
WebKitErrors.h

Overview

This document describes the types and constants found in the Web Kit:

Constants

Enumerations

WebEditingDelegate—WebViewInsertAction

typedef enum {
   WebViewInsertActionTyped,
   WebViewInsertActionPasted,
   WebViewInsertActionDropped,
} WebViewInsertAction;

Discussion

These constants are described in WebEditingDelegate.

Availability

WebPolicyDelegate—WebNavigationType

typedef enum {
   WebNavigationTypeLinkClicked,
   WebNavigationTypeFormSubmitted,
   WebNavigationTypeBackForward,
   WebNavigationTypeReload,
   WebNavigationTypeFormResubmitted,
   WebNavigationTypeOther
} WebNavigationType;

Discussion

These constants are described in WebPolicyDelegate.

Availability

WebUIDelegate—WebDragDestinationAction

typedef enum {
   WebDragDestinationActionNone    = 0,
   WebDragDestinationActionDHTML   = 1,
   WebDragDestinationActionEdit    = 2,
   WebDragDestinationActionLoad    = 4,
   WebDragDestinationActionAny     = UINT_MAX
} WebDragDestinationAction;

Discussion

These constants are described in WebUIDelegate.

Availability

WebUIDelegate—WebDragSourceAction

typedef enum {
   WebDragSourceActionNone         = 0,
   WebDragSourceActionDHTML        = 1,
   WebDragSourceActionImage        = 2,
   WebDragSourceActionLink         = 4,
   WebDragSourceActionSelection    = 8,
   WebDragSourceActionAny          = UINT_MAX
} WebDragSourceAction;

Discussion

These constants are described in WebUIDelegate.

Availability

WebUIDelegate—WebMenuItemTag

enum {
   WebMenuItemTagOpenLinkInNewWindow=1,
   WebMenuItemTagDownloadLinkToDisk,
   WebMenuItemTagCopyLinkToClipboard,
   WebMenuItemTagOpenImageInNewWindow,
   WebMenuItemTagDownloadImageToDisk,
   WebMenuItemTagCopyImageToClipboard,
   WebMenuItemTagOpenFrameInNewWindow,
   WebMenuItemTagCopy,
   WebMenuItemTagGoBack,
   WebMenuItemTagGoForward,
   WebMenuItemTagStop,
   WebMenuItemTagReload,
   WebMenuItemTagCut,
   WebMenuItemTagPaste,
   WebMenuItemTagSpellingGuess,
   WebMenuItemTagNoGuessesFound,
   WebMenuItemTagIgnoreSpelling,
   WebMenuItemTagLearnSpelling,
   WebMenuItemTagOther,
   WebMenuItemTagSearchInSpotlight,
   WebMenuItemTagSearchWeb,
   WebMenuItemTagLookUpInDictionary,
   WebMenuItemTagOpenWithDefaultApplication,
   WebMenuItemPDFActualSize,
   WebMenuItemPDFZoomIn,
   WebMenuItemPDFZoomOut,
   WebMenuItemPDFAutoSize,
   WebMenuItemPDFSinglePage,
   WebMenuItemPDFFacingPages,
   WebMenuItemPDFContinuous,
   WebMenuItemPDFNextPage,
   WebMenuItemPDFPreviousPage,
};

Discussion

These constants are described in WebUIDelegate.

Availability

Web Kit Policy Errors

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

Constants
WebKitErrorCannotShowMIMEType

Indicates that a MIME type is not supported.

Available in Mac OS X v10.2 and later.

Declared in WebKitErrors.h

WebKitErrorCannotShowURL

Indicates a failure in changing a location.

Available in Mac OS X v10.2 and later.

Declared in WebKitErrors.h

WebKitErrorFrameLoadInterruptedByPolicyChange

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

Available in Mac OS X v10.2 and later.

Declared in WebKitErrors.h

Discussion

These errors occur when applying policy decisions.

Web Kit Plug-in and Java Errors

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

Constants
WebKitErrorCannotFindPlugIn

Indicates a plug-in could not be found.

Available in Mac OS X v10.3 and later.

Declared in WebKitErrors.h

WebKitErrorCannotLoadPlugIn

Indicates a plug-in could not be loaded.

Available in Mac OS X v10.3 and later.

Declared in WebKitErrors.h

WebKitErrorJavaUnavailable

Indicates that Java is unavailable.

Available in Mac OS X v10.2 and later.

Declared in WebKitErrors.h

Discussion

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

Global Variables

WebArchive—Pasteboard Types

extern NSString *WebArchivePboardType;

Discussion

This constant is described in WebArchive.

WebHistory—User Info Dictionary Key

extern NSString *WebHistoryItemsKey;

Discussion

This constant is described in WebHistory.

WebPlugInViewFactory—Plug-in View Dictionary Keys

extern NSString *WebPlugInBaseURLKey;
extern NSString *WebPlugInAttributesKey;
extern NSString *WebPlugInContainerKey;
extern NSString *WebPlugInContainingElementKey;

Discussion

These constants are defined in WebPlugInViewFactory.

WebPolicyDelegate—Action Dictionary Keys

extern NSString *WebActionNavigationTypeKey;
extern NSString *WebActionElementKey;
extern NSString *WebActionButtonKey;
extern NSString *WebActionModifierFlagsKey;
extern NSString *WebActionOriginalURLKey;

Discussion

These constants are defined in WebPolicyDelegate.

WebView—Element Dictionary Keys

extern NSString *WebElementDOMNodeKey;
extern NSString *WebElementFrameKey;
extern NSString *WebElementImageAltStringKey;
extern NSString *WebElementImageKey;
extern NSString *WebElementImageRectKey;
extern NSString *WebElementImageURLKey;
extern NSString *WebElementIsSelectedKey;
extern NSString *WebElementLinkURLKey;
extern NSString *WebElementLinkTargetFrameKey;
extern NSString *WebElementLinkTitleKey;
extern NSString *WebElementLinkLabelKey;

Discussion

These constants are defined in WebView.

Other Web Kit Errors

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

Constants
WebKitErrorDomain

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

Available in Mac OS X v10.2 and later.

Declared in WebKitErrors.h

WebKitErrorMIMETypeKey

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

Available in Mac OS X v10.2 and later.

Declared in WebKitErrors.h

WebKitErrorPlugInNameKey

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

Available in Mac OS X v10.2 and later.

Declared in WebKitErrors.h

WebKitErrorPlugInPageURLStringKey

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

Available in Mac OS X v10.2 and later.

Declared in WebKitErrors.h

Discussion

These errors occur while loading content.

Notifications

WebHistory Notification Names

NSString *WebHistoryItemsAddedNotification;
NSString *WebHistoryItemsRemovedNotification;
NSString *WebHistoryAllItemsRemovedNotification;
NSString *WebHistoryLoadedNotification;
NSString *WebHistorySavedNotification;

Discussion

These notifications are described in the “Notifications” section of WebHistory.

WebPreferences Notification Names

NSString *WebPreferencesChangedNotification;

Discussion

This notification is described in the “Notifications” section of WebPreferences.

WebView Notification Names

NSString *WebViewDidBeginEditingNotification;
NSString *WebViewDidChangeNotification;
NSString *WebViewDidEndEditingNotification;
NSString *WebViewDidChangeTypingStyleNotification;
NSString *WebViewDidChangeSelectionNotification;
NSString *WebViewProgressEstimateChangedNotification;
NSString *WebViewProgressFinishedNotification;
NSString *WebViewProgressStartedNotification;

Discussion

These notifications are described in the “Notifications” section of WebView.



Next Page > Hide TOC


Last updated: 2008-06-19




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice