I'm trying to create a dock tile plugin.
- I've added a new Target to my project with Wrapper Extension as docktileplugin
I've added a Class that implements NSDockTilePlugIn with method:
-(void)setDockTile:(NSDockTile *)dockTile { NSLog(@"DOCK TILE PLUG-IN LOADED!"); }
I've set this class as Principal Class in its info.plist
- I've set this new DockTile Target as a Target Dependency for my main application and I've added it to "Copy Files / Destinantion: Plugins" Build Phase
- I've set the NSDockTilePlugin keyword in my Main Application's Info.plist as the name of the Dock Tile Target without extension.
I've followed the documentation, and even downloaded the example program that apple provides located: http://developer.apple.com/library/mac/#samplecode/DockTile/Listings/DockTilePlugIn_DockTilePlugIn_m.html
The example program doesn't work, but I at least get a console error:
12/20/12 8:29:49.217 PM com.apple.dock.extra: Could not load Dock Extra class from the bundle /Users/[MYNAME]/Downloads/DockTile/build/Release/DockTileApp.app//Contents/PlugIns/DockTile.docktileplugin
Please help.
After much trial and error, I discovered that you must have the following build configurations for your dock tile plugin to run properly.
Other Linker Flags: -ObjC
OS X Deployment Target: 10.6 or above, depending on your current OSX version
Architecture: Standard (32/64-bit Intel)