Pull request Compare This branch is 630 commits ahead, 2 commits behind richkilmer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
..
Failed to load latest commit information.
calculator
demo
download_and_progress_indicator
growl
hotconsole
layout_view
round_transparent_window
round_transparent_window_no_nibs
README.markdown

README.markdown

HotCocoa Examples

This directory contains a few demos of using the HotCocoa library.

To learn more about HotCocoa see:

http://rdoc.info/github/ferrous26/hotcocoa/master/file/docs/Overview.markdown

When you install HotCocoa you get a hotcocoa command which generates a project directory from a template.

Usage:

hotcocoa <directory>

This will generate your directory structure. The sample apps in this directory were generated with this command. The basic HotCocoa directory structure is:

./directory/Rakefile #=> used with macrake to build the app ./directory/config/build.yml #=> build options ./directory/lib/application.rb #=> application template ./directory/lib/menu.rb #=> menus used by the app ./resources/HotCocoa.icns #=> hotcocoa icon

After generating the structure, cd into that directory and run macrake to build.

Examples

Examples can all be run by running macrake from inside the example directory.

cd <example-directory>
macrake
  • calculator

    A simple calculator example.

  • demo

    Demo of many hotcocoa wrappers.

  • layout_view

    Demo of using the layout view system.

  • round_transparent_window

    Port of an Apple sample showing how to use hotcocoa with a nib files.

  • round_transparent_window_no_nibs

    Same as round_transparent_window but without using any nibs.

  • download_and_progress_indicator

    Demo of downloading data, progress indicator and scroll view containing a text view.

  • hotconsole

    An IRB-like console using WebKit.

HotCocoa::Graphics Examples

There is also a set of examples showcasing some of the things you can create using HotCocoa::Graphics. You can run the example app directly by using macruby.

cd graphics
macruby demo.rb