title: How to do look ups on the CFDictionary
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6006545/how-to-retrieve-the-values-for-the-particular-key-from-cfmutabledictionary">How to retrieve the values for the particular key from CFMutableDictionary</a>  </p>
  </blockquote>
  
  
  
  <p>In C++:</p>
  
  <pre><code>typedef struct
  {
       unsigned short wId;
       bool bPersists;
       unsigned short uPeriod;
       bool bStop;
  }stTimer;
  
  unsigned short wId;
  stTimer pEvent;
  CTypedPtrMap&lt;CMapWordToPtr,WORD,stTimer*&gt;m_cIdMap;
  if(m_cIdMap.Lookup(wId,pEvent))
  {
      //find and remove the event pEvent;
  }
  </code></pre>
  
  <p>I need to port the same functionality to Objective-C</p>
  
  <p>I could be able to set and get the values into the <code>CFDictionary</code>, but I need to do look ups into the dictionary with the <code>wId</code>(key) and the <code>pEvent</code>(value).</p>