title: Pass data from .cpp file to Objective c ViewController
body: <p>I have a class called Client which is written in C++, It receives the message from the server and whenever the message is received i want to show the alert to users that what text has received? Simply need to notify the message to controllers. I have searched many blocks i can't find any example. Can anyone please give me a sample code to pass data? </p>
  
  <p>In .cpp file this function will be triggered when the message is received</p>
  
  <pre><code>void Client::processMessage(CMsg *message) {
      assert(message);
  
      Log("&lt;- %s", message-&gt;HumanReadableDescription().c_str());
      Log("received message = %s",message-&gt;HumanReadableDescription().c_str());
  
      string text = receivedMeassage.substr(0, 4);
      if (text == "Text") {
          Log("Code entered");
          long position = receivedMeassage.find(":");
          string sub = receivedMeassage.substr(position+1);
          currentMessage = sub;
          receievedMessages = currentMessage;
          Log(sub);
      }
      Log(receivedMeassage);
  }
  </code></pre>
  
  <p>If the text is received i want to show popup to the users.</p>