Giter Site home page Giter Site logo

basisapple's People

Contributors

randonee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

basisapple's Issues

Failing to compile osx example

Trying to run the OSX example, but build fails with a couple of errors:

➜ example git:(master) haxelib run basis build.basis osx
haxe/example/osx/OSXExample.hx:32: characters 25-52 : apple.appkit.#NSWindow has no field NSTitledWindowMask
haxe/example/osx/OSXExample.hx:33: characters 25-54 : apple.appkit.#NSWindow has no field NSClosableWindowMask
haxe/example/osx/OSXExample.hx:34: characters 25-60 : apple.appkit.#NSWindow has no field NSMiniaturizableWindowMask
haxe/example/osx/OSXExample.hx:35: characters 25-55 : apple.appkit.#NSWindow has no field NSResizableWindowMask
haxe/example/osx/OSXExample.hx:45: characters 2-45 : Class not found : NSTextView

Versions:

OSX Lion
Haxe Compiler 3.1.0 - (C)2005-2013 Haxe Foundation
➜  example git:(master) haxelib list
.: 
--hel: 
--help: 
basis: [0.1.0-alpha]
basisApple: 0.1.0-alpha [dev:/Users/fullofcaffeine/workspace/code/BasisApple]
format: [3.0.1]
hamcrest: [1.2.1]
haxe-3.0.0-osx: 
haxelib_client: [3.1.0-rc.3]
hxcocoa-master.zip: 
hxcpp: [3.0.2]
hxjava: [3.0.0-rc.1]
mconsole: [1.4.0]
mcover: [2.0.3]
mlib: [2.0.2]
munit: [2.0.2]
openfl: 1.0.0-rc.2 [1.0.6]
openfl-native: [1.0.0-rc.2]
openfl-tools: [1.0.0-rc.3]
Xcode: 4.4.1

What am I doing wrong?

Directory not found when building example

Looks like you might have moved on from this awesome project, but I was hoping for a hint on getting the example built with the latest haxe/hxcpp (I'm building with the latest of both).

Right now AppleBuildTool fais while trying to copy from build/ios/simulator/haxe/cpp/obj/iphonesim/src/ to build/ios/simulator/Files/bin/ as the source directory doesn't exist. The source is this line here:
https://github.com/Randonee/BasisApple/blob/master/buildtool/src/basisapple/AppleBuildTool.hx#L248

I've rebuilt hxcpp for ios sim and build tools on both sides, but am no close to figuring out where this directory gets created.

Any help would be greatly appreciated!

UIAlertView

Hi,

I tried to add a UIAlertView on my stage.

var _alert = new UIAlertView();
addSubview(_alert);
_alert.title = "test";
_alert.message = "test message\n1\n2\n3";
_alert.addButtonWithTitle("cancel");
_alert.addButtonWithTitle("ok");
_alert.show();

Could i add eventListeners for my buttons?

thanks.

UIImage resizableImageWithCapInsets issue

Hi Aaron,

I am trying to play with the UIImage and UIImageView.

Simple code:

var imageView:UIImageView = new UIImageView();
var panelImage:UIImage = UIImage.imageWithData(NSData.dataWithContentsOfFile( IOSUtil.getAssetPath("haxe.png") ));
imageView.image = panelImage.resizableImageWithCapInsets([10.0, 16, 10, 16]); // crash
imageView.frame = [20, 20, 200, 150];
addSubview(imageView);

But when i tried to set resizableImageWithCapInsets, i got this error.

[DEBUG] 2013-08-02 15:23:55.939 Example[90468:11f03] -[NSNull _isResizable]: unrecognized selector sent to instance 0x2592678
[DEBUG] 2013-08-02 15:23:55.941 Example[90468:11f03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull _isResizable]: unrecognized selector sent to instance 0x2592678'
*** First throw call stack:
(0x2461012 0x17dce7e 0x24ec4bd 0x2450bbc 0x245094e 0x8127ab 0x469ae9 0x24551bd 0x24550d6 0x8e86 0x1a4abe 0x17e352 0x157fa5 0x9b474 0x1681c2 0x163e09 0x161c49 0x15118d 0x152048 0x161c49 0x175cb1 0x1aaf24 0x237e 0x51b8 0x6abc 0x3ad5db 0x3a589d 0x24551bd 0x24550d6 0x8e86 0x1a4abe 0x17e352 0x157fa5 0x12fea0 0x16b7a5 0x169e69 0x161c49 0x15118d 0x152048 0x161c49 0x175cb1 0x1aaf24 0x237e 0x51b8 0x6abc 0x3ad5db 0x3a589d 0x25d3 0x1a4e1e 0x17e0d2 0x154137 0x162f67 0x15bb97 0x2070 0x4ff2 0x35c157 0x35c747 0x35d94b 0x36ecb5 0x36fbeb 0x361698 0x23bcdf9 0x23bcad0 0x23d6bf5 0x23d6962 0x2407bb6 0x2406f44 0x2406e1b 0x35d17a 0x35effc 0x247a 0x1aaaa7 0x17e048 0x15ba19 0x9aef 0x17f303 0x1f95 0x1f15 0x1)
libc++abi.dylib: terminate called throwing an exception
[DEBUG]

Any idea?

error loading module with basisApple and openfl

Is it at all possible to use basis with openfl?

I have self built basis and basisApple from v0.1.0 installed

basis: [0.0.3-alpha]
basisApple: [0.0.3-alpha]

when build with openfl I get error

Error : Could not load module basis@nswindow_initWithContentRectStyleMaskBackingDefer__4

The full compile output can be found at https://gist.github.com/sakari/6410868

Would you have any clue on how to make this work?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.