Skip to content

Oomph/Sidekick-Sample-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sidekick Sample Plugin

This is an example project showing you how to create plugins for Sidekick. It simply speaks the text entered by the user using Mac OS's say command.

Getting started with the SDK

To properly set up your plugin, there are a few settings you'll have to customize. If it helps, you can start using this provided project as a base, but be sure to customize the bundle identifier and class names.

  1. Remember that your code is being loaded into Sidekick's global namespace, so make an effort to use unique class names and prefixes. The following prefixes belong to us and should not be used: SK, NL, AL.
  2. Add -undefined dynamic_lookup to your linker flags.
  3. Set the SKPluginVersion key in your Info.plist to 1
  4. Set garbage collection to supported (GCC_ENABLE_OBJC_GC -fobjc-gc), and not required so that when we migrate away from GC your plugin will keep working.
  5. Subclass SKPlugin and make this subclass your bundle's principal class.
  6. Subclass SKAction to create your actions, and update the list returned by your plugin's -actions method.
  7. If needed, subclass SKOptionSheetController to provide more complex interaction in your action's configuration sheet.

##Extra tips

  • If you need a user interface, don't forget to disable your window's "Visible At Launch" property. You must also set an outlet for this window on File's Owner (an SKOptionSheetController).
  • If you need to access your plugin's bundle, don't use [NSBundle mainBundle], instead use the -bundle method on your SKPlugin subclass. All SKAction objects keep a reference to their plugin instance.

About

A simple plugin for Sidekick (includes the SDK headers)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published