var $ = require('../')
  , Foundation = $.import('Foundation')

// Create an NSAutoreleasePool
var pool = Foundation.NSAutoreleasePool('alloc')('init')

var nsstr = Foundation.NSString({ 'stringWithUTF8String': 'Hello Objective-C!' })
console.log(nsstr('UTF8String'));

nsstr = nsstr({ 'stringByAppendingString': nsstr });
console.log(nsstr('UTF8String'));

@@ -20,25 +20,8 @@
 /')%0A
-  , Foundation = 
 $.im
@@ -82,26 +82,17 @@
  pool = 
-Foundation
+$
 .NSAutor
@@ -132,26 +132,17 @@
 nsstr = 
-Foundation
+$
 .NSStrin

Update tests/nsstring.js for newer API syntax.