Skip to content

Instantly share code, notes, and snippets.

@bored-engineer
Created November 10, 2011 22:27
Show Gist options
  • Select an option

  • Save bored-engineer/1356465 to your computer and use it in GitHub Desktop.

Select an option

Save bored-engineer/1356465 to your computer and use it in GitHub Desktop.
2011-11-10 16:54:15.051 node[2145:707] -[NSKeyedUnarchiver count]: unrecognized selector sent to instance 0x7fe450499c60
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
NSInvalidArgumentException: -[NSKeyedUnarchiver count]: unrecognized selector sent to instance 0x7fe450499c60
at Function.msgSend (/Users/Luke/Projects/Archiver/node_modules/NodObjC/id.js:105:21)
at id (/Users/Luke/Projects/Archiver/node_modules/NodObjC/id.js:70:15)
at Object.<anonymous> (/Users/Luke/Projects/Archiver/test.js:9:46)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
var $ = require("NodObjC");
$.import("Foundation");
var pool = $.NSAutoreleasePool('alloc')('init')
var NSData = $.NSData("dataWithContentsOfFile",$(process.argv[2]))
var NSKeyedUnarchiver = $.NSKeyedUnarchiver("alloc")("initForReadingWithData", NSData);
var NSMutableArray = $.NSMutableArray("alloc")("initWithArray", NSKeyedUnarchiver);
console.log(NSKeyedUnarchiver, NSMutableArray);
pool('drain')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment