appcelerator/hyperloop-ios — pull request #8 by infosia (2014-06-12 01:54:56+00:00)
Title: Implement constructor overloading

Added "Hyperloop.ctor" to suport basic overloading for iOS constructors.

```javascript
var window = Hyperloop.ctor(UIWindow, 'initWithFrame:').call(bounds);
var view = Hyperloop.ctor(UIView, 'initWithFrame:').call(frame);
```

goes to

```objectivec
UIWindow * instance = [[[UIWindow alloc] initWithFrame:static_cast(bounds)] autorelease];
UIView * instance = [[[UIView alloc] initWithFrame:static_cast(frame)] autorelease];
```

You can still use "new" to call default constructor like this:

```
var window = new UIWindow();
```

goes to

```
UIWindow * instance = [[UIWindow new] autorelease];
```