Exception thrown in NSOrderedSet generated accessors

后端 未结 25 2320
天涯浪人
天涯浪人 2020-11-22 09:07

On my Lion app, I have this data model:

\"enter

The relationship subitem

25条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 09:25

    If you are using mogenerator, then instead of

    [parentObject addsObject:childObject];
    

    simply use:

    [[parent object sSet] addObject:childObject];
    

提交回复
热议问题