Dockyard > Objective-C Protocols > WebKitAdditions
Protocol Description
Allows DockyardPreferences to be used in a widget by implementing some simple WebKit methods.
Methods
+ isSelectorExcludedFromWebScript:
Method Detail
+ (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.
+ (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