mattetti / macruby-roundtransparentwindow

MacRuby port of Apple's RoundTransparentWindow sample

This URL has Read+Write access

macruby-roundtransparentwindow / rb_main.rb
100755 23 lines (19 sloc) 0.551 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# rb_main.rb
# RoundTransparentWindow
#
# Created by Matt Aimonetti on 2/14/09.
# Copyright __MyCompanyName__ 2009. All rights reserved.
#
 
# Loading the Cocoa framework. If you need to load more frameworks, you can
# do that here too.
framework 'Cocoa'
 
# Loading all the Ruby project files.
dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
Dir.entries(dir_path).each do |path|
  if path != File.basename(__FILE__) and path[-3..-1] == '.rb'
    require(path)
  end
end
 
# Starting the Cocoa main loop.
NSApplicationMain(0, nil)