Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jokade/scalanative-cocoa

A scala-native bridge to Cocoa
https://github.com/jokade/scalanative-cocoa

cocoa objective-c scala scala-native

Last synced: 8 days ago
JSON representation

A scala-native bridge to Cocoa

Awesome Lists containing this project

README

        

# scalanative-cocoa
Experimental [scala-native](https://github.com/scala-native/scala-native) bridge for Objective-C / Cocoa.

**WARNING**: This project is in an early experimental stage. Most of the bindings to Cocoa are still missing. The API and especially the semantics for creating Objective-C classes in Scala may change any time!

**[Documentation](https://jokade.github.io/scalanative-cocoa/)**

### sbt Settings
Add this to your `build.sbt`:
```scala
libraryDependencies += "de.surfice" %%% "scalanative-cocoa-foundation" % "0.0.1-SNAPSHOT"

addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)

resolvers += Resolver.sonatypeRepo("snapshots")
```
Replace `scalanative-cocoa-foundation` with `scalanative-cocoa-appkit` if you want to use AppKit. However, it's probably best to start with the template in that case (see below).

scalanative-cocoa requires scala-native 0.3.2.