Export plug-ins receive data from Hunter Suite to elaborate or save it.
To begin the development of your own plug-in you can download the sample project.
An import plug-in need to be an application (.app).
The info dictionary (Info.plist) of your application must have the following keys used by Hunter Suite
- HSPluginName the name of your plug-in. Used to present the plug-in to the user.
- HSPluginType the type of hunter suite plug-in. The value for export plug-ins is: Export
- Creator (optional) your name or nick name. This value will be displayed in the plug-ins manager as Creator of plug-in.
- CFBundleVersion version of your plug-in. This values is used by plug-in manager to display plug-in update. Current version of plug-in manger check the version code as a String comparison. And this choice could create some problem with version code (for example 1.10 is an older version than 1.9).
- ExportCovers (boolean value). This value indicate if your plug-in need cover of items.
HSExport
For the development of import plug-ins the SDK provide the class HSExport.
Method of this class:
- (id)init;This method will initialize the class and read task parameters passed by the hunter suite. The parameters read will identify what is the calling application of your plug-in.
- (NSArray*)arrayOfItemsToExport;This method read the xml file written by Hunter Suite and return an NSArray of NSXMLElements of the items that the user want to export.
- (NSString *)imagePathForItem:(NSXMLElement*)anItem;This method return the path of image for anItem, return nil if the the item doesn’t have an image
- (NSString *) listName;This method return the name of the list exported by Hunter Suite.
-(HunterApplication) callingApplication;return the code of application who launched the plug-in
