{"size": 3081, "ext": "js", "max_stars_repo_path": "build/iphone/build/Products/Debug-iphonesimulator/jiko.app/hyperloop/foundation/nsvalue.js", "max_stars_repo_name": "patel-pragnesh/casa-tookan", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "build/iphone/build/Products/Debug-iphonesimulator/jiko.app/hyperloop/foundation/nsvalue.js", "max_issues_repo_name": "patel-pragnesh/casa-tookan", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "build/iphone/build/Products/Debug-iphonesimulator/jiko.app/hyperloop/foundation/nsvalue.js", "max_forks_repo_name": "patel-pragnesh/casa-tookan", "max_forks_repo_forks_event_min_datetime": "2021-07-18T03:02:33.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-18T03:02:33.000Z"}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 20.137254902, "max_line_length": 195, "alphanum_fraction": 0.6851671535}
/**
 * HYPERLOOP GENERATED - DO NOT MODIFY
 *
 * This source code is Copyright (c) 2018 by Appcelerator, Inc.
 * All Rights Reserved.  This code contains patents and/or patents pending.
 */
var $dispatch = Hyperloop.dispatch,
	$init,
	$imports,
	$class;


var NSObject = require('/hyperloop/foundation/nsobject');


/**
 * Foundation//Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h
 * @class
 */
function NSValue (pointer) {
	if (!(this instanceof NSValue)) {
		throw new TypeError('Cannot instantiate a class by calling it as a function');
	}

	if (!$init) {
		$initialize();
	}

	if (pointer) {
		var oldWrapper = Hyperloop.getWrapper(pointer.$native ? pointer.$native : pointer);
		if (oldWrapper) {
			if (oldWrapper.__proto__ !== this.__proto__) {
				oldWrapper = Object.setPrototypeOf(oldWrapper, this.__proto__);
			}
			return oldWrapper;
		}
	}

	if (!pointer) {
		pointer = Hyperloop.createProxy({
			class: 'NSValue',
			alloc: true,
			init: 'init'
		});
	}
	NSObject.call(this, pointer);
	Object.defineProperty(this, '$private', {
		value: {},
		writable: true,
		enumerable: false,
		configurable: false
	});
}
// superclass
NSValue.prototype = Object.create(NSObject.prototype, {
	constructor: {
		value: NSValue,
		enumerable: false,
		writable: true,
		configurable: true
	}
});
Object.setPrototypeOf(NSValue, NSObject);

Object.defineProperty(NSValue, '$class', {
	get: function () {
		if (!$init) { $initialize(); }
		return $class;
	},
	enumerable: false
});

Object.defineProperty(NSValue, 'className', {
	value: 'NSValue',
	enumerable: false,
	writable: true
});

Object.defineProperty(NSValue.prototype, 'className', {
	value: 'NSValue',
	enumerable: false,
	writable: true
});

Object.defineProperty(NSValue.prototype, 'toString', {
	value: function () {
		return Hyperloop.stringValue(this.$native);
	},
	enumerable: false,
	writable: true
});


Object.defineProperty(NSValue, 'toString', {
	value: function () {
		return '[class NSValue]';
	},
	enumerable: false,
	writable: true
});



function $initialize () {
	$imports = {};


	$class = Hyperloop.createProxy({
		class: 'NSValue',
		alloc: false,
		init: 'class'
	});
	Object.defineProperty(NSValue, '$imports', {
		value: $imports,
		writable: true,
		enumerable: false,
		configurable: false
	});
	Object.defineProperty(NSValue, '$private', {
		value: {},
		writable: true,
		enumerable: false,
		configurable: false
	});

	// instance methods

	Object.defineProperty(NSValue.prototype, 'getValue', {
		value: function (_value) {
			this.$private.getValue = this.$private.getValue || [];
			this.$private.getValue.push(_value);
			var result = $dispatch(this.$native, 'getValue:', [_value], true);
			return result;
		},
		enumerable: false,
		writable: true
	});



	$init = true;
}

/**
 * ticore compatibility with ES6
 */
Object.setPrototypeOf = Object.setPrototypeOf || function(obj, proto) {
	obj.__proto__ = proto;
	return obj;
}

module.exports = NSValue;
