Inherits from NSObject
Declared in INKDefaultsManager.h

Overview

INKDefaultsManager manages saving which applications are preferred for different handler types.

Tasks

Instance Methods

addDefault:forHandler:

- (void)addDefault:(NSString *)appName forHandler:(Class)handlerClass
Discussion

Stores a default for a handler.

Parameters

appName

The name (plist/folder name) of an application to be set as the default

handlerClass

The handler class to register the default for.

Declared In

INKDefaultsManager.h

defaultApplicationForHandler:allowSystemDefault:

- (NSString *)defaultApplicationForHandler:(Class)handlerClass allowSystemDefault:(BOOL)allowSystemDefault
Discussion

Returns the stored default application for a given handler class.

Parameters

handlerClass

a subclass of INKHandler

allowSystemDefault

True if the system default should be returned in the case of no user preference.

Return Value

A string with the name of the application the user prefers

Declared In

INKDefaultsManager.h

removeAllDefaults

- (void)removeAllDefaults
Discussion

Remove all saved defaults

Declared In

INKDefaultsManager.h

removeDefaultForHandler:

- (void)removeDefaultForHandler:(Class)handlerClass
Discussion

Remove the default app for a given handler

Parameters

handlerClass

An INKHandler subclass

Declared In

INKDefaultsManager.h