├── English.lproj
├── InfoPlist.strings
└── MainMenu.xib
├── MacGap.icns
├── PhoneGapLogo.png
├── application.icns
├── Default-Landscape.png
├── www
└── phonegap-docs
│ ├── joDoc.zip
│ └── template
│ ├── phonegap
│ ├── line.png
│ ├── arrow.png
│ ├── prettify
│ │ ├── lang-proto.js
│ │ ├── lang-yaml.js
│ │ ├── lang-wiki.js
│ │ ├── lang-lua.js
│ │ ├── lang-hs.js
│ │ ├── lang-lisp.js
│ │ ├── lang-css.js
│ │ ├── lang-scala.js
│ │ ├── lang-apollo.js
│ │ ├── lang-ml.js
│ │ ├── prettify.css
│ │ ├── lang-vhdl.js
│ │ ├── lang-sql.js
│ │ ├── lang-vb.js
│ │ └── prettify.js
│ ├── mobile.css
│ ├── index.html
│ └── index.css
│ └── joDoc
│ ├── index.html
│ ├── docbody.css
│ └── doc.css
├── .gitignore
├── phonegap-mac.xcodeproj
├── project.xcworkspace
│ └── contents.xcworkspacedata
├── project.pbxproj
└── shazron.perspectivev3
├── main.m
├── Classes
├── Commands
│ ├── Sound.h
│ └── Sound.m
├── Constants.h
├── WebViewDelegate.h
├── ContentView.h
├── Utils.h
├── WebViewDelegate.m
├── ContentView.m
└── Utils.m
├── phonegap_mac_Prefix.pch
├── ReadMe.md
├── phonegap_macAppDelegate.h
├── phonegap_mac-Info.plist
├── macgap.plist
└── phonegap_macAppDelegate.m
/English.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/MacGap.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subtleGradient/callback-mac/master/MacGap.icns
--------------------------------------------------------------------------------
/PhoneGapLogo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subtleGradient/callback-mac/master/PhoneGapLogo.png
--------------------------------------------------------------------------------
/application.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subtleGradient/callback-mac/master/application.icns
--------------------------------------------------------------------------------
/Default-Landscape.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subtleGradient/callback-mac/master/Default-Landscape.png
--------------------------------------------------------------------------------
/www/phonegap-docs/joDoc.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subtleGradient/callback-mac/master/www/phonegap-docs/joDoc.zip
--------------------------------------------------------------------------------
/www/phonegap-docs/template/phonegap/line.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subtleGradient/callback-mac/master/www/phonegap-docs/template/phonegap/line.png
--------------------------------------------------------------------------------
/www/phonegap-docs/template/phonegap/arrow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/subtleGradient/callback-mac/master/www/phonegap-docs/template/phonegap/arrow.png
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | build
3 |
4 | /phonegap-mac.xcodeproj/xcuserdata/
5 | /phonegap-mac.xcodeproj/project.xcworkspace/xcuserdata/
6 | *.pbxuser
7 | *.mode1v3
--------------------------------------------------------------------------------
/www/phonegap-docs/template/joDoc/index.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/phonegap-mac.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // phonegap-mac
4 | //
5 | // Created by shazron on 10-04-08.
6 | // Copyright 2010 __MyCompanyName__. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | int main(int argc, char *argv[])
12 | {
13 | return NSApplicationMain(argc, (const char **) argv);
14 | }
15 |
--------------------------------------------------------------------------------
/Classes/Commands/Sound.h:
--------------------------------------------------------------------------------
1 | //
2 | // Sound.h
3 | // phonegap-mac
4 | //
5 | // Created by shazron on 10-04-30.
6 | // Copyright 2010 Nitobi Software Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 |
12 | @interface Sound : NSObject {
13 |
14 | }
15 |
16 | - (void) play:(NSString*)file;
17 |
18 | @end
19 |
--------------------------------------------------------------------------------
/www/phonegap-docs/template/joDoc/docbody.css:
--------------------------------------------------------------------------------
1 | body {
2 | background: #fff;
3 | font: normal 100% "Georgia", "Palatino", "Times New Roman", "Times";
4 | /* font: normal 100% "Gill Sans", "Verdana", "Arial"; */
5 | line-height: 1.6;
6 | padding: 0 1em;
7 | color: #383838;
8 | font-size: 15px;
9 | margin: 0 auto;
10 | max-width: 700px;
11 | }
12 |
--------------------------------------------------------------------------------
/www/phonegap-docs/template/phonegap/prettify/lang-proto.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.sourceDecorator({keywords:"bool bytes default double enum extend extensions false fixed32 fixed64 float group import int32 int64 max message option optional package repeated required returns rpc service sfixed32 sfixed64 sint32 sint64 string syntax to true uint32 uint64",cStyleComments:true}),["proto"])
--------------------------------------------------------------------------------
/Classes/Constants.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Constants.h
3 | * phonegap-mac
4 | *
5 | * Created by shazron on 10-04-08.
6 | * Copyright 2010 Nitobi Software Inc. All rights reserved.
7 | *
8 | */
9 |
10 |
11 | #define kStartPage @"index.html"
12 |
13 | //Sencha Demos
14 | //#define kStartFolder @"www/sencha"
15 |
16 | // PhoneGap Docs Only
17 | #define kStartFolder @"www/phonegap-docs/template/phonegap/"
18 |
19 |
--------------------------------------------------------------------------------
/phonegap_mac_Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'phonegap-mac' target in the 'phonegap-mac' project
3 | //
4 |
5 | #ifdef __OBJC__
6 |
7 | #ifdef _DEBUG
8 | #define DebugNSLog(format, ...) NSLog(format, ## __VA_ARGS__)
9 | #else
10 | #define DebugNSLog(format, ...)
11 | #endif
12 |
13 | #import
14 |
15 | #import "Constants.h"
16 | #import "Utils.h"
17 | #endif
18 |
--------------------------------------------------------------------------------
/Classes/WebViewDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // WebViewDelegate.h
3 | // phonegap-mac
4 | //
5 | // Created by shazron on 10-04-30.
6 | // Copyright 2010 Nitobi Software Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @class Sound;
13 |
14 | @interface WebViewDelegate : NSObject {
15 | Sound* sound;
16 | }
17 |
18 | @property (nonatomic, retain) Sound* sound;
19 |
20 | @end
21 |
--------------------------------------------------------------------------------
/www/phonegap-docs/template/phonegap/prettify/lang-yaml.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:|>?]+/,null,":|>?"],["dec",/^%(?:YAML|TAG)[^#\r\n]+/,null,"%"],["typ",/^[&]\S+/,null,"&"],["typ",/^!\S*/,null,"!"],["str",/^"(?:[^\\"]|\\.)*(?:"|$)/,null,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,null,"'"],["com",/^#[^\r\n]*/,null,"#"],["pln",/^\s+/,null," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\r\n]|$)/],["pun",/^-/],["kwd",/^\w+:[ \r\n]/],["pln",/^\w+/]]),
2 | ["yaml","yml"])
--------------------------------------------------------------------------------
/ReadMe.md:
--------------------------------------------------------------------------------
1 | MacGap OSX
2 |
3 | =============================================================
4 | MacGap aims to provide HTML/JS/CSS developers an xCode project for developing Native OSX Apps that run in UIWebView and take advantage of WebKit technologies.
5 |
6 |
7 | Pre-requisites
8 | -------------------------------------------------------------
9 | Make sure you have installed the latest Mac OSX Core Library. Download at [http://developer.apple.com/](http://developer.apple.com/)
10 |
11 |
--------------------------------------------------------------------------------
/Classes/ContentView.h:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.h
3 | // phonegap-mac
4 | //
5 | // Created by shazron on 10-04-19.
6 | // Copyright 2010 Nitobi Software Inc. All rights reserved.
7 | //
8 |
9 | #import
10 | #import
11 |
12 | @class WebViewDelegate;
13 |
14 | @interface ContentView : NSView {
15 | IBOutlet WebView* webView;
16 | WebViewDelegate* delegate;
17 |
18 | }
19 |
20 | @property (retain) WebView* webView;
21 | @property (retain) WebViewDelegate* delegate;
22 |
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/Classes/Utils.h:
--------------------------------------------------------------------------------
1 | //
2 | // Utils.h
3 | // phonegap-mac
4 | //
5 | // Shazron Abdullah
6 | // Copyright 2010 Nitobi Software Inc. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #define DEG_EPS 0.001
12 | #define fequal(a,b) (fabs((a) - (b)) < DEG_EPS)
13 | #define fequalzero(a) (fabs(a) < DEG_EPS)
14 |
15 | @class LoadingView;
16 |
17 | @interface Utils : NSObject {
18 | }
19 |
20 | - (float) titleBarHeight:(NSWindow*)aWindow;
21 | - (NSString*) pathForResource:(NSString*)resourcepath;
22 |
23 |
24 | + (Utils*) sharedInstance;
25 |
26 | @end
27 |
--------------------------------------------------------------------------------
/www/phonegap-docs/template/phonegap/prettify/lang-wiki.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t \xA0a-gi-z0-9]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[=*~\^\[\]]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^(?:[A-Z][a-z][a-z0-9]+[A-Z][a-z][a-zA-Z0-9]+)\b/],["lang-",/^\{\{\{([\s\S]+?)\}\}\}/],["lang-",/^`([^\r\n`]+)`/],["str",/^https?:\/\/[^\/?#\s]*(?:\/[^?#\s]*)?(?:\?[^#\s]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\s\S])[^#=*~^A-Zh\{`\[\r\n]*/]]),["wiki"]);
2 | PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"])
--------------------------------------------------------------------------------
/www/phonegap-docs/template/phonegap/prettify/lang-lua.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])*(?:\'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\s\S]*?(?:\]\1\]|$)|[^\r\n]*)/],["str",/^\[(=*)\[[\s\S]*?(?:\]\1\]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],
2 | ["pln",/^[a-z_]\w*/i],["pun",/^[^\w\t\n\r \xA0][^\w\t\n\r \xA0\"\'\-\+=]*/]]),["lua"])
--------------------------------------------------------------------------------
/www/phonegap-docs/template/phonegap/prettify/lang-hs.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\x0B\x0C\r ]+/,null,"\t\n\u000b\u000c\r "],["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])\'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:(?:--+(?:[^\r\n\x0C]*)?)|(?:\{-(?:[^-]|-+[^-\}])*-\}))/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^a-zA-Z0-9\']|$)/,
2 | null],["pln",/^(?:[A-Z][\w\']*\.)*[a-zA-Z][\w\']*/],["pun",/^[^\t\n\x0B\x0C\r a-zA-Z0-9\'\"]+/]]),["hs"])
--------------------------------------------------------------------------------
/phonegap_macAppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // phonegap_macAppDelegate.h
3 | // phonegap-mac
4 | //
5 | // Created by shazron on 10-04-08.
6 | // Copyright 2010 __MyCompanyName__. All rights reserved.
7 | //
8 |
9 | #import
10 | #import "ContentView.h"
11 |
12 | #if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5)
13 | @interface phonegap_macAppDelegate : NSObject {
14 | #else
15 | @interface phonegap_macAppDelegate : NSObject {
16 | #endif
17 | IBOutlet NSWindow* window;
18 | IBOutlet ContentView* contentView;
19 | }
20 |
21 | @property (nonatomic, retain) NSWindow* window;
22 | @property (nonatomic, retain) ContentView* contentView;
23 |
24 | @end
25 |
--------------------------------------------------------------------------------
/www/phonegap-docs/template/phonegap/prettify/lang-lisp.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(/,null,"("],["clo",/^\)/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/,
2 | null],["lit",/^[+\-]?(?:0x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["cl","el","lisp","scm"])
--------------------------------------------------------------------------------
/www/phonegap-docs/template/phonegap/prettify/lang-css.js:
--------------------------------------------------------------------------------
1 | PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[ \t\r\n\f]+/,null," \t\r\n\u000c"]],[["str",/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],["str",/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],["kwd",/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],
2 | ["com",/^(?:
142 |
143 |
144 |