Files
atom/src/jscocoa.coffee
2011-08-30 01:12:24 -07:00

14 lines
411 B
CoffeeScript

# This is where we put things from JSCocoa's class.js file
exports.outArgument = (args...) ->
# Derive to store some javascript data in the internal hash
if not @outArgument2?
OSX.JSCocoa.createClass_parentClass_ 'JSCocoaOutArgument2', 'JSCocoaOutArgument'
o = OSX.JSCocoaOutArgument2.instance
o.isOutArgument = true
if args.length == 2
o.mateWithMemoryBuffer_atIndex_ args[0], args[1]
o