Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-4975

PList/Memory Store issue when trying to save a NSDictionary

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0
    • None
    • None
    • None

      I am able to save ratatouilleMutableDic without issue. But ratatouilleDic throws exception:
      // 'NSUnknownKeyException', reason: '[<__NSDictionaryI 0xa870630> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key id.'

      See test code below:
      NSMutableDictionary *ratatouilleMutableDic = [@

      { @"title" : @"Ratatouille", @"description" :recipeWriting}

      mutableCopy];
      [store save:ratatouilleMutableDic error:nil];

      NSDictionary *ratatouilleDic = @

      { @"title" : @"Ratatouille", @"description" :recipeWriting}

      ;
      [store save:ratatouilleDic error:nil];

      Expected behavior: should accept both without issue.

            corinnekrych_jira Corinne Krych (Inactive)
            corinnekrych_jira Corinne Krych (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: