segecey / hoop Goto Github PK
View Code? Open in Web Editor NEWBuilding native OSX apps.
Building native OSX apps.
Kind of a feature/enhancement kind of issue:
Make a documentation for this somewhere, like GitBook.
the require line doesn't work as-is and once you eventually coax it into something that does work you get an app that just spits out
2018-06-09 20:11:53.365 crystal-run-app.tmp[15858:15753157] app launched
and nothing else. Judging by the code there's supposed to be a window and a button and the button should do something when clicked.
Error while trying to run an example (all examples fail):
$ crystal run example/ns_log_test.cr
Error in example/ns_log_test.cr:1: while requiring "./../src/hoop"
require "./../src/hoop"
^
in src/hoop.cr:2: while requiring "./foundation/*"
require "./foundation/*"
^
in src/foundation/calayer.cr:1: while requiring "./nsobject"
require "./nsobject"
^
in src/foundation/nsobject.cr:306: expanding macro
objc_method "retain"
^
in macro 'objc_method' /Users/aemadrid/code/aem/crystal/hoop/src/foundation/nsobject.cr:185, line 2:
1.
> 2. objc_method_helper(self.to_objc, "retain", nil, nil, nil)
3.
4.
expanding macro
in src/foundation/nsobject.cr:40: can't execute OpAssign in a macro
{{ "##{crystal_method ||= method_name}".id }}
^
aemadrid at cortazar in ~/code/aem/crystal/hoop (master●●)
$ crystal -v
Crystal 0.20.0 (2016-11-22)```
Example with NSRect: https://gist.github.com/RyanScottLewis/2fbcf4cf695d654ea43c0cbe4764b4d7
Snippet:
window = NSWindow.new( ... )
p window.content_view.frame
Error:
wrong number of arguments for 'Hoop::NSRect.new' (given 1, expected 4)
Overloads are:
- Hoop::NSRect.new(x, y, w, h)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle </Users/nick/Code/Personal/hoop/example/bundled_application/Hoop.app> (loaded)'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.