Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (8 sloc) 1.07 KB
This is a port of the Apple sample program "Sketch" to MacRuby. It is based on the version of Sketch shipped as part to the developer tools for Snow Leopard.
The MacRuby version closely follows the Objective C version with the following differences:
1. Ruby idioms have been used where this made sense.
2. Proxy objects have been used as observers. The ObjC Sketch uses the objects directly and then uses the context parameter to select the appropriate response in a large switch statement. Apart from being ugly the context parameters was set to the address of a static unique static string for the relevant classes and this doesn't translate nicely to Ruby.
3. The script support has been stripped out.
I am adding in no licensing, copying or use restrictions. This is unsupported code and you use at your own risk. Apple's licensing restrictions still apply.
The xcode project can be used to build and run Ruby-Sketch as normal. If you prefer not to use xcode then the Rakefile can be used to build and run the app. This works with macrake as well as rake.
Dave Baldwin.