Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 28 lines (23 sloc) 671 Bytes
#
# rb_main.rb
# Skreenics
#
# Created by naixn on 27/04/10.
# Copyright Thibault Martin-Lagardette 2010. All rights reserved.
#
# Loading the Cocoa framework. If you need to load more frameworks, you can
# do that here too.
framework 'Cocoa'
framework 'QTKit'
#puts RUBY_VERSION
# Loading all the Ruby project files.
main = File.basename(__FILE__, File.extname(__FILE__))
dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
Dir.glob(File.join(dir_path, '*.{rb,rbo}')).map { |x| File.basename(x, File.extname(x)) }.uniq.each do |path|
if path != main
puts path
require(path)
end
end
# Starting the Cocoa main loop.
NSApplicationMain(0, nil)