lib/core.js
function copyMethodList (classPtr) {
  var numMethods = ref.alloc('uint')
    , rtn = []
    , methods = objc.class_copyMethodList(classPtr, numMethods)
    , count = numMethods.deref();

  for (var i=0; i<count; i++)
    rtn.push(wrapValue(objc.method_getName(methods.readPointer(i * ref.sizeof.pointer)),':'));

  free(methods);
  return rtn;
}
function copyMethodList (classPtr) {
  var numMethods = ref.alloc('uint')
    , rtn = []
    , methods = objc.class_copyMethodList(classPtr, numMethods)
    , count = numMethods.deref();

  for (var i=0; i<count; i++)
    rtn.push(wrapValue(objc.method_getName(methods.readPointer(i * ref.sizeof.pointer)),':'));

  free(methods);
  return rtn;
}
function copyMethodList ( classPtr ) { var numMethods = ref . alloc ( 'uint' ) , rtn = [ ] , methods = objc . class_copyMethodList ( classPtr , numMethods ) , count = numMethods . deref ( ) ; for ( var i = 0 ; i < count ; i ++ ) rtn . push ( wrapValue ( objc . method_getName ( methods . readPointer ( i * ref . sizeof . pointer ) ) , ':' ) ) ; free ( methods ) ; return rtn ; }
Copies and returns an Array of the instance methods the given Class pointer
implements. To get class methods, call this function with a metaclass.
Copies and returns an Array of the instance methods the given Class pointer implements . To get class methods call this function with a metaclass .