¡@

Home 

2014/10/15 ¤U¤È 10:03:36

iphone Programming Glossary: anentityaobj

Where can I find a good example of a Core Data to-many relationship?

http://stackoverflow.com/questions/5399195/where-can-i-find-a-good-example-of-a-core-data-to-many-relationship

relationship using a mutableSetForKey expanding everything out to see the detail would like so NSMutableSet muteSet anEntityAObj mutableSetValueForKey @ bees muteSet addObject aNewBObj anEntityAObj setValueForKey @ bees ...or more compactly anEntityAObj.. see the detail would like so NSMutableSet muteSet anEntityAObj mutableSetValueForKey @ bees muteSet addObject aNewBObj anEntityAObj setValueForKey @ bees ...or more compactly anEntityAObj mutableSetValueForKey @ bees addObject aNewBObj If you set from.. mutableSetValueForKey @ bees muteSet addObject aNewBObj anEntityAObj setValueForKey @ bees ...or more compactly anEntityAObj mutableSetValueForKey @ bees addObject aNewBObj If you set from the EntityB side however you are only adding a single object..