MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 208 forks source link

Added support for callbacks and menus #14

Closed hildjj closed 10 years ago

hildjj commented 12 years ago

Tested callbacks on sound completion, then went on to support menus. Note: there are likely still some memory leaks due to the JavaScriptCore bridging fighting with ARC.

To use: macgap.menu.getItem("File").submenu().addItem("Foo", "", function() { console.log("Foo!"); })

asgeo1 commented 12 years ago

Awesome! I really needed a JS bridge for the menu.

This commit no longer works with master though - I was able to just take out the bits I needed. It would probably be a good idea to split this into some smaller commits too.

subtleGradient commented 12 years ago

Awesome. Any chance of getting menu support in any time soon? That'd be hip.

micho commented 12 years ago

I'd love to see this in.

Speaking of menus, how hard would it be to add a status bar menu (like dropbox's) with this? It'd be great to have the option, for "always-on" apps.

mraaroncruz commented 11 years ago

Bump :)

jeff-h commented 10 years ago

@hildjj — I have just committed a (modified) version of your code. Thanks so much for your work!

hildjj commented 10 years ago

Thanks. Sorry I never got around to replying to you. That code was from long enough ago that I couldn't get excited about recreating the environment. I'm glad you got it working!

On 3/30/14, 1:00 AM, "jeff-h" notifications@github.com wrote:

@hildjj https://github.com/hildjj — I have just committed a (modified) version of your code. Thanks so much for your work! — Reply to this email directly or view it on GitHub https://github.com/maccman/macgap/pull/14#issuecomment-39019259.

Joe Hildebrand

jeff-h commented 10 years ago

No worries—it was good to learn properly how it works. It's a great extension to MacGap's functionality too.