Here you'll find an assortment of code that we've written and decided would be useful to the community at large. Fell free to use this code as you see fit, as long as you agree to the terms of our license.

Main


This page contains some of the code I’ve written and want to share with the community. The code was either written in a professional capacity as part of bigger projects (these tend to be the individual classes) or as “fun” projects in my spare time.  

License

You may use the code on this page as long as you agree and adhere to the license, viewable on the Code License page. It basically says that you can use the code as you wish, in open-source, free or commercial products, as long as you provide credit to us in your about box.

Donations 

You don’t have to pay or donate to use this code, but if you find it useful feel free to purchase a copy of our Music Rescue software! :-D

Cocoa Touch (iPhone/iPod touch)

The Cocoa Touch code I’ve written is on its own page: Cocoa Touch.

 

 Cocoa Desktop/Objective-C Code

 

iPhone Browser is a little open source application that allows you to view the contents of a limited section of the iPhone’s directory structure and files. The main reason for the application’s existence is to test the framework that does the actual talking to the device, which is also included. The project is large enough to have its own page dedicated to it.

 


 

 

KNImageAndTextButtonCell is an NSButtonCell subclass that allows you to create an NSOutlineView containing a checkbox, an image and a label and have the content follow the indentation correctly, which isn’t possible using plain AppKit classes. This class is used in the “Notes” section of Music Rescue.

 

Left: Using two columns and AppKit classes. Right: One column containing a KNImageAndTextButtonCell.

You can download the class here (75Kb zip file).  

 


 

 

KNEmbossedTextField is an NSTextField subclass and gives the text a subtle white “emboss” effect, useful for status labels and the like.

You can download the class here (26Kb zip file).

 


 

 

KNFlippedAwareImageView is an NSImageView subclass that provides the following:

- The control is aware of the image’s flipped status, and will draw the image the right way up regardless. 

- The control sizes the image to fit within its bounds - useful for OS 10.4, which doesn’t support image scaling in NSImageView. 

You can download the class here (8Kb zip file).