Dockyard > Objective-C Protocols > WebKitAdditions

WebKitAdditions

Protocol Description


Allows DockyardPreferences to be used in a widget by implementing some simple WebKit methods.

Methods


+ isKeyExcludedFromWebScript:

+ isSelectorExcludedFromWebScript:

+ webScriptNameForSelector:

Method Detail


isKeyExcludedFromWebScript:

+ (BOOL)isKeyExcludedFromWebScript:(constchar *)key

Limits the widget to three properties: currentDock, dockNames, and shouldSwitchDashboard.

isSelectorExcludedFromWebScript:

+ (BOOL)isSelectorExcludedFromWebScript:(SEL)sel

Limits the widget to three methods: currentDock, dockNames, renameDock:to:, and changeDock:. Anything else has to go through DockyardPlugin first.

webScriptNameForSelector:

+ (NSString *)webScriptNameForSelector:(SEL)sel

Changes Objective-C selectors into JavaScript method names: changeDock: becomes changeDock (no colon), and renameDock:to: becomes renameDock.

This page was generated with DocYouMeant, a program created by Belkadan Software

Valid XHTML 1.0! Valid CSS!