#655: NSInteger received as nil from QuickLook API -----------------------------------+---------------------------------------- Reporter: jakub.suder@… | Owner: lsansonetti@… Type: defect | Status: reopened Priority: minor | Milestone: Component: MacRuby | Resolution: Keywords: | -----------------------------------+---------------------------------------- Comment(by jakub.suder@…): Yeah, that's more or less what I'm doing - this is my rb_main: {{{ # Loading frameworks framework 'Cocoa' # 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, '*.bridgesupport')).uniq.each do |path| load_bridge_support_file(path) end Dir.glob(File.join(dir_path, '*.{rb,rbo}')).map { |x| File.basename(x, File.extname(x)) }.uniq.each do |path| require(path) unless path == main end # Starting the Cocoa main loop NSApplicationMain(0, nil) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/655#comment:15> MacRuby <http://macruby.org/>