Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jokade/scalanative-cocoa
- Owner: jokade
- License: mit
- Created: 2017-08-08T19:27:22.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T23:02:08.000Z (over 1 year ago)
- Last Synced: 2024-10-12T08:43:11.554Z (24 days ago)
- Topics: cocoa, objective-c, scala, scala-native
- Language: Scala
- Homepage:
- Size: 770 KB
- Stars: 21
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-scala-native - Cocoa - Bindings for the macOS graphical framework [Cocoa](https://en.wikipedia.org/wiki/Cocoa_(API)). (Bindings)
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.