Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 23 lines (19 sloc) 0.551 kB
cb05fbb @mattetti MacRuby port of Apple's RoundTransparentWindow sample
authored
1 #
2 # rb_main.rb
3 # RoundTransparentWindow
4 #
5 # Created by Matt Aimonetti on 2/14/09.
6 # Copyright __MyCompanyName__ 2009. All rights reserved.
7 #
8
9 # Loading the Cocoa framework. If you need to load more frameworks, you can
10 # do that here too.
11 framework 'Cocoa'
12
13 # Loading all the Ruby project files.
14 dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
15 Dir.entries(dir_path).each do |path|
16 if path != File.basename(__FILE__) and path[-3..-1] == '.rb'
17 require(path)
18 end
19 end
20
21 # Starting the Cocoa main loop.
22 NSApplicationMain(0, nil)
Something went wrong with that request. Please try again.