Haxe - The Cross-Platform Toolkit
Haxe OCaml NSIS Makefile Java C# Other
Pull request Compare This branch is 65 commits ahead, 3115 commits behind HaxeFoundation:development.
Latest commit 7e895b7 Dec 27, 2015 @ralcr sys fixes
Permalink
Failed to load latest commit information.
extra update haxelib (no more ufront submodules) Dec 15, 2015
libs @ b58b567 sync ocamllibs Oct 10, 2015
std sys fixes Dec 27, 2015
tests don't generate dump var ids to avoid crazy diffs Dec 9, 2015
.gitattributes export-ignore some files Sep 8, 2015
.gitignore Merge from HF and converted back to objc Dec 17, 2015
.gitmodules added haxelib repo in extra/haxelib_src (close #2258) Mar 1, 2014
.travis.yml [CI] copy test outputs to haxe-output folder Dec 1, 2015
CONTRIBUTING.md --help-defines: mention dump subdirectory and dump=pretty May 27, 2015
Makefile Merge from HF and converted back to objc Dec 17, 2015
Makefile.version_extra Added package_bin rule to Makefile. Save package as an artifacts on A… Apr 11, 2015
Makefile.win tweaked packaging Sep 9, 2015
README.md Merge from HF and converted back to objc Dec 17, 2015
analyzer.ml All compiler source files should be licensed in GPLv2+ as stated in h… Oct 25, 2015
appveyor.yml set HAXEPATH on appveyor as haxelib currently requires it (see HaxeFo… Dec 15, 2015
ast.ml fixed compiling problems Dec 17, 2015
build.sh Fixed boxing primitives into an array Dec 20, 2015
codegen.ml allow arbitrary `{` and `}` when interpolating code Dec 3, 2015
common.ml fixed compiling problems Dec 17, 2015
dce.ml [python] keep array getter/setter when we increment/decrement on it (… Nov 22, 2015
filters.ml apply `@:native` to all abstracts Dec 3, 2015
genas3.ml All compiler source files should be licensed in GPLv2+ as stated in h… Oct 25, 2015
gencommon.ml add `s_module_type_kind` Dec 3, 2015
gencpp.ml [cpp] Use remap name when using class name to determine if access is … Nov 24, 2015
gencs.ml All compiler source files should be licensed in GPLv2+ as stated in h… Oct 25, 2015
genjava.ml Fix issue #4608 in Java Oct 27, 2015
genjs.ml [js] don't store haxe.CallStack.lastException when dce=no and haxe.Ca… Nov 23, 2015
genneko.ml All compiler source files should be licensed in GPLv2+ as stated in h… Oct 25, 2015
genobjc.ml sys fixes Dec 27, 2015
genphp.ml [php] fix comparison (closes #4695) Dec 4, 2015
genpy.ml [python] generate AnonObject when metadata exists (closes #4422) Nov 20, 2015
genswf.ml All compiler source files should be licensed in GPLv2+ as stated in h… Oct 25, 2015
genswf9.ml All compiler source files should be licensed in GPLv2+ as stated in h… Oct 25, 2015
genxml.ml All compiler source files should be licensed in GPLv2+ as stated in h… Oct 25, 2015
haxe.hxproj ignore a few files Mar 1, 2015
interp.ml apply `@:native` to all abstracts Dec 3, 2015
lexer.mll allow parsing `||=` and `&&=` (closes #4427) Nov 20, 2015
main.ml Merge from HF and converted back to objc Dec 17, 2015
matcher.ml still allow matching on read-only extern static fields (closes #4679) Nov 28, 2015
optimizer.ml fix a bug Dec 4, 2015
parser.ml Revert "parse documentation and metadata for structures (closes #4655)… Nov 26, 2015
type.ml fix silly AST printing bug Dec 8, 2015
typecore.ml remove some `rec` from non-recursive types/functions Nov 29, 2015
typeload.ml check module redefinitions in `add_module` again (closes #4692) Dec 4, 2015
typer.ml make sure all arguments to `trace` are stringified (closes #4712) Dec 8, 2015

README.md

Haxe logo

Objc target for Haxe language

Building from sources

  1. Clone the repository, initialize and fetch the submodules.

    git clone git@github.com:ralcr/haxe.git
    cd haxe
    git submodule init
    git submodule update
    
  2. You now need to hardcode the path to the new std lib. In main.ml file at around line 810 change the first path to match yours:

    com.class_path <- ["/Users/Cristi/Documents/haxecompiler/haxe/std/";"";"/"]
    
  3. Build Haxe with:

    make haxe
    
  4. Or build Haxe and the tools with:

    make
    
  5. On Mac you can run the build.sh script that will compile Haxe and will build the demos as well:

    ./build.sh
    
  6. If something is not working run first:

    make clean
    make
    
  7. Bringing HF/haxe changes in this fork (when needed, usually the fork is up to date)

    git fetch upstream git merge upstream/development

Getting started with iOS

The starting point of your app should look like this, everything else is ignored:

public static function main() {
	return new UIApplicationMain ( AppDelegate );
}

Where the AppDelegate.hx conforms with the UIApplicationDelegate. This is the main method of your app, you should put the code before returning.

class AppDelegate extends UIResponder implements UIApplicationDelegate {
	public function application (application:UIApplication, didFinishLaunchingWithOptions:NSDictionary) :Bool {
		// See the demos from hxcocoa lib please
		return true;
	}
}