title: Objective-C method/function calling. (from javascript example)
body: <p>I'm a JS developer learning Obj-C. I have most of the basics down but I'm getting hung up on some concepts. It would be extremely helpful for me to see an objective-c translation of the following functions. </p>
  
  <pre><code>var doSomething = function (callback) {
   //some work
  }
  
  var start = function (interval, other, cb) {
  
    setInterval(doSomething(function(result){
      total = result + other
      cb(total)
    }), interval)
  
  }
  
  start(1000, 10, function(total){
    console.log(total)
  })
  </code></pre>
  
  <p>Thanks very much for any help. </p>