Twitter add-on source code
What better way to learn how to write a notifier add-on for ecto3 than to see a working example? I uploaded the source code of my twitter add-on as a 104 KB zip file. The archive contains an XCode 2 project with everything necessary to have a notifier add-on working. You can work right on top of this file, but you'll have to rename source code files and class names to prevent conflicts (see this blog entry for directions).
The meat of the code is one call the add-on gets from ecto:
- (void)processNotification:(int)type data:(id)data
The various types and the data you can expect is documented right in the code. If you're familiar with Objective-C and Cocoa, the project should be easy study material. If you have questions, pose them in the Developer Forum or contact me directly. I'd be more than happy to provide pointers.
Smart observers will note that the add-on header file also applies to ecto3 add-ons that let you manipulate or insert text (the Amazon and Flickr Helper add-ons are using this). I'll release a sample for this type of add-on soon.
Reactions on this post