NodObjC

The NodeJS ⇆ Objective-C Bridge

blockbridgesupportclasscoreexceptionffi-extendglobalidimpimportindexivarmethodselstructtypes

Sel

Provides a transparent bridge between JavaScript Strings and Objective-C SELs.

toSEL()

This is a private function used internally by NodObjC. You should not need to use this function in your code.

Transforms a JS String selector into a SEL pointer reference. This function does caching internally.

function toSEL (sel) {
  var rtn = cache[sel]
  if (rtn) return rtn
  debug('sel_registerName():', sel)
  return cache[sel] = core.sel_registerName(sel)
}

toString()

This is a private function used internally by NodObjC. You should not need to use this function in your code.

Transforms a SEL reference to a JS String.

function toString (SEL) {
  return core.sel_getName(SEL)
}
Fork me on GitHub