title: Reading NSDictionary Keys from property lists
body: <p>in my project i'm using a propertyList for maintaining data. the plist file is named "DataBase.plist".  the Root for DataBase.plist is a dictionary which contains 5 dictionaries as child items... now the sub Dictionary contains 4 strings out of which one is always a webaddress with key "URL" (Without the quotes).... 
  i'm running the following code to extract the value for this URL key but it is not working out..</p>
  
  <pre><code>NSString *path = [[NSBundle mainBundle] pathForResource:@"DataBase" ofType:@"plist"];
  NSDictionary *rootDict = [[NSDictionary alloc] initWithContentsOfFile:path];
  NSString *URLforAll = [[NSString alloc] init];
  for (id key in rootDict)
  {
      if(key == rowString)
      {
          NSDictionary *dict = [rootDict objectForKey:key];
          URLforAll = [dict objectForKey:@"URL"];
      }
  }
  </code></pre>
  
  <p>the rowstring is a string whose value is the same as the text in the selected cell (i've tested it , it is accurate).
  PLease help me out if you can.... i'll be thankful</p>