Toolbar support for the window #33

Closed
mechiland opened this Issue Feb 28, 2012 · 3 comments

Projects

None yet

3 participants

@mechiland

The Mac Toolbar window is normally used as Preferences. Currently there is only one window which basically embed an WebView. Would be good introduce another window type with toolbar supported.

The toolbar can be a special HTML element (

), or a separate WebView which basically can render any valid HTML.

Well, I don't know its doable or not, nor the API design.

@liamks

Why not use the normal webview for preferences? Most web apps have dedicated views, or modal dialogues, for preferences, why not do the same with your macgap app? What type of preferences are you referring to?

@mechiland

It's all about the look and feel. Just like all the work like JQuery mobile - it tried very hard to make the web application look like native iOS/Andorid app, MacGap should do the similar thing. FYI, the twitter preference window. Look at the toolbar on top. http://d.pr/xm25

Update: well I agree this isn't critical - user can always find creative way to do it.

@jeff-h
MacGap member

It's an interesting discussion. This part of the Mac UI is not easy to replicate accurately in HTML/JS.

You actually can create a second window in Xcode for your prefs, putting an NSToolbar on it and various controls, and bind them all to NSUserDefaults, all without writing Objective-C. Now (as of a week or so ago) MacGap JavaScript gets notified of changes to NSUserDefaults.

@jeff-h jeff-h closed this Apr 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment