Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross platform? #104

Open
ghost opened this issue Apr 19, 2014 · 4 comments
Open

Cross platform? #104

ghost opened this issue Apr 19, 2014 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 19, 2014

Hey, I like this project much more than node-webkit, which is 70+mb on the mac.

Are there any plans for cross platform versions of this? (At least for linux)?

@jeff-h
Copy link
Member

jeff-h commented Apr 20, 2014

MacGap is very OS-X focussed, as part of its lightweight ideal. However, it would be awesome to have a linux and Windows equivalent, ideally sharing the same JavaScript API.

I see you already found https://github.com/pyrated/pengap which sounds ideal. Perhaps we could hound @pyrated to bring it up-to-date with some of our newer stuff? :) It would most likely be a reasonable amount of effort on his part though, now that we have menus, JS callbacks, user defaults etc

I think there's an underlying philosophical problem which is that MacGap is deliberately not a "lowest common denominator" solution, which PhoneGap / Cordova and all the others deliberately are. My goal is that MacGap apps should be indistinguishable from pure-Objective-C apps and I'm not convinced this can be achieved when also trying to maintain 1:1 feature compatibility with Linux and/or Windows versions.

Please let us know if you find any similar projects / solutions for other platforms, even if their JavaScript API is different. I don't imagine it would be too difficult to maintain a few different versions of the same JS app, each taking into account different platform shell capabilities. The vast majority of most apps' JS code base would go unchanged, I think.

@ghost
Copy link
Author

ghost commented Apr 20, 2014

It seems the pengap guy has now simply removed his code! :(

@lavignes
Copy link

pengap was a random thing I made in a weekend when I was an undergrad. While the parts of the API I had implemented did functionally work, it was really a series of nasty hacks.

Methods in the API were sent from webkit as console messages to a key value parser in the controller.

It is by no means something I would consider for production. Just a proof of concept. It would need to be done in a much more sane way, but I only had knowledge of console callbacks for WebkitGTK at the time.

@jeff-h
Copy link
Member

jeff-h commented Apr 21, 2014

@pyrated — thanks for your input. As mentioned above, a Linux equivalent for MacGap would be really awesome. There really aren't any lightweight options that I am aware of. Any way you might be interested in making PenGap the answer? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants