title: I thought I wanted an infinite loop. What kind of loop do I want?
body: <p>I wanted to highlight every occurrence of a word in textview. I thought that I wanted an infinite loop, because I wanted it to always scan entry text for the keyword. I am learning that may not be the case. What kind of loop am I looking for that accomplishes the goal of continuously scanning the text?</p>
  
  <pre><code>while (range.location == textView.text.characters.count) {
      text.addAttribute(NSForegroundColorAttributeName, value:UIColor.redColor(), range: nsString.rangeOfString("red"))
      text.addAttribute(NSForegroundColorAttributeName, value: UIColor.redColor(), range: NSMakeRange(0, stringLength))
  }
  </code></pre>