No commit activity in last 3 years
No release in over 3 years
Ruby FFI bindings for the OSX Cocoa API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 1.0
>= 0
~> 2.0
~> 3.12

Runtime

 Project Readme

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