title: Objective C - displaying data in UITextView
body: <p>I'm having difficulties displaying data in a UITextView in iPhone programming.</p>
  
  <p>I'm analyzing incoming audio data (from the microphone). In order to do that, I create an object "analyzer" from my SignalAnalyzer class which performs analysis of the incoming data. What I would like to do is to display each new incoming data in a TextView in realtime.</p>
  
  <p>So when I push a button, I create the object "analyzer" which analyze the incoming  data. Each time there is new data, I need to display it on the screen in a TextView.</p>
  
  <p>My problem is that I'm getting an error because (I think) I'm trying to send a message to the parent class (the one taking care of displaying stuff in my UITextView : it has a UITexView instance variable linked in Interface Builder).
  What should I do in order to tell my parent class what it needs to display ? Or how should I design my classes to display automaticlally something ?</p>
  
  <p>Thank you for your help.</p>
  
  <p>PS : Here is my error : </p>
  
  <pre><code>    2010-04-19 14:59:39.360 MyApp[1421:5003] void WebThreadLockFromAnyThread(), 
  0x14a890: Obtaining the web lock from a thread other than the main thread 
  or the web thread. UIKit should not be called from a secondary thread.
  
      2010-04-19 14:59:39.369 MyApp[1421:5003] bool _WebTryThreadLock(bool), 
  0x14a890: Tried to obtain the web lock from a thread other than the main thread 
  or the web thread. This may be a result of calling to UIKit from a secondary thread.
  Crashing now...
  
      Program received signal:  “EXC_BAD_ACCESS”.
  </code></pre>