[ :: :: :: :: :: ]

XRG
General Info Download Documentation
 
Creating an MTK Plugin

Creating an MTK plugin is a fairly straight-forward process. It is suggested to copy the project of an already existing MTK plugin and adapt it to fit your needs. The plugin bundle must be named <something>.plugin, and the pricipal class must implement the MTKPlugin protocol. Following is a description of the methods needed for the MTKPlugin protocol.

- (NSString *) pluginName

The only purpose of this method is to return a plugin name. At the moment, this method is never used but may be used in future implementations.

- (NSString *) pluginShortName

Return a short name for your plugin. Variables that your plugin returns will be in the format: <plugin short name>:<variable key name>. Therefore, the short name will be referenced heavily by mtk clients, and should be unique. The plugin short name must not include the : or , characters.

- (NSDictionary *) fetchData

This returns an NSDictionary containing keys and values of the data you wish to return. Like other dictionaries, the keys name the data returned, and the values are the data values for those keys. Key names must not contain the : or , characters. Values must not contain a , character.

The column names for CSV output are only printed when mtk is initially started, so once you return a list of key/value combinations, the key list must not change.

 
     
 
 
 
 
© Copyright 2004-2008 Gaucho Software
Email: info_at_gauchosoft.com
 
 
 
  Home :: Contact :: Software :: Consulting :: Store :: Forums