In preperation for the release of TuneBar 4, during the course of this summer, I am releasing a detailed document on the creation of skins in TuneBar 4. The creation of skins is once again done via XML, but I have changed the way many of the different widgets are scripted, and added one very useful feature.
First lets look at what you can now do that improves current version 3 functionality.
- Sizes can be defined as percentages.
- As well as the left and top attributes, there are now right and bottom attributes.
- Controller background can be set to a TuneBar vector graphic. (SVG support is coming, but may not make it to version 4.0)
OK, so left like that, the improvements don’t sound that impressive. The impressive part is that you can now make your own widgets to place on the controller. Unfortunately this requires knowledge of Cocoa and Objective-C.
This means that anyone with knowledge of Cocoa can make widgets and fully skin TuneBar Controllers in a way that is not possible with version 3.
Using these custom made widgets is simple. Below I have listed the code to use a widget that is built in to TuneBar. The back button.
<TBBack left="50" top="1" width="25" height="25" image="Bitmaps/Back.png"
activeImage=”Bitmaps/Back_Pressed.png” />
Now here is an example of using a custom made widget. The Ratings Widget.
<Ratings_Widget left="620" top="2" width="125" height="25"
starImage=”Bitmaps/Star.png” dotImage=”Bitmaps/Dot.png”/>
The API that I have developed allows full access to iTunes, provides a way of calling upon images inside the current skin, and retrieving all attributes specified for that element. Below is a listing of the header file used for Ratings Widget:

More will be coming soon.










