Skip to content
Haxe - The Cross-Platform Toolkit
Haxe OCaml NSIS Makefile Java C# Other
Branch: development
Clone or download
Pull request Compare This branch is 65 commits ahead, 7126 commits behind HaxeFoundation:development.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
extra
libs @ b58b567
std
tests
.gitattributes
.gitignore
.gitmodules
.travis.yml
CONTRIBUTING.md
Makefile
Makefile.version_extra
Makefile.win
README.md
analyzer.ml
appveyor.yml
ast.ml
build.sh
codegen.ml
common.ml
dce.ml
filters.ml
genas3.ml
gencommon.ml
gencpp.ml
gencs.ml
genjava.ml
genjs.ml
genneko.ml
genobjc.ml
genphp.ml
genpy.ml
genswf.ml
genswf9.ml
genxml.ml
haxe.hxproj
interp.ml
lexer.mll
main.ml
matcher.ml
optimizer.ml
parser.ml
type.ml
typecore.ml
typeload.ml
typer.ml

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;
	}
}
You can’t perform that action at this time.