Cocoa & UIKit for Crystal Lang
require "./src/sapphire"
include Sapphire
username_text_field = NSTextField.new NSRect.new(0, 170, 200, 20).to_objc
password_text_field = NSTextField.new NSRect.new(0, 150, 200, 20).to_objc
login_button = NSButton.new NSRect.new(0,150,100,50).to_objc
login_button.set_title = "Login"
puts login_button.title
Thanks to the broken Crocoa
- Fork it ( https://github.com/0x73/sapphire/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request