Sha256: 745ca4fa2e3a00310a99e71c359ed2bf7d94e8106459328038ad5bef7e89dad7

Contents?: true

Size: 473 Bytes

Versions: 1

Compression:

Stored size: 473 Bytes

Contents

begin
require 'rubygems'
rescue LoadError
end
require 'osx/cocoa'
require 'osx/hotkey'
require 'pathname'

def log(*args)
	args.each do |m|
		OSX.NSLog m.inspect
	end
end

def _(key)
	NSLocalizedString(key, '').to_s
end

path = Pathname.new OSX::NSBundle.mainBundle.resourcePath.fileSystemRepresentation
Pathname.glob(path + '*.rb') do |file|
	next if file.to_s == __FILE__
	require(file)
end
OSX::NSApplicationWithHotKey.sharedApplication
OSX.NSApplicationMain(0, nil)


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
newcocoa-0.0.1 templates/main.rb