Skip to content
/ cocoa Public
forked from patrickhno/cocoa

Ruby FFI bindings for the OSX Cocoa API

License

Notifications You must be signed in to change notification settings

eto/cocoa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cocoa

Ruby FFI bindings for the OSX Cocoa API

Installation

gem install cocoa

Usage

require 'cocoa'

Cocoa::NSAutoreleasePool.new

app = Cocoa::NSApplication.sharedApplication
app.setActivationPolicy Cocoa::NSApplicationActivationPolicyRegular
app.activateIgnoringOtherApps true

alert = Cocoa::NSAlert.alloc.init.autorelease
alert.setMessageText "Hello world!"
alert.runModal

alt tag

About

Ruby FFI bindings for the OSX Cocoa API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%