Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 31st, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var $ = require("NodObjC");
  2.  
  3. $.import("Foundation");
  4.  
  5. var pool = $.NSAutoreleasePool('alloc')('init')
  6.  
  7. var NSData = $.NSData("dataWithContentsOfFile",$(process.argv[2]))
  8. var NSKeyedUnarchiver = $.NSKeyedUnarchiver("alloc")("initForReadingWithData", NSData);
  9. var NSMutableArray = $.NSMutableArray("alloc")("initWithArray", NSKeyedUnarchiver);
  10.  
  11. console.log(NSKeyedUnarchiver, NSMutableArray);
  12.  
  13. pool('drain')