relationshipsWithDestinationEntity:
レシーバーと他のエンティティ(entity)とのリレーションシップを返します
-(NSArray *)relationshipsWithDestinationEntity:(NSEntityDescription *)entity:
解説
レシーバーと他のエンティティ(entity)とのリレーションシップを返します。
返り値
( NSArray * )
なし
引数
( NSEntityDescription * )entity
フレームワーク
CoreData
クラス
NSEntityDescription
Instance Methods
使用可能
10.4
参照
例文
// エンティティ NSEntityDescription *entity = [NSEntityDescription entityForName:@"Entity" inManagedObjectContext:[self managedObjectContext]]; NSEntityDescription *otherEntity = [NSEntityDescription entityForName:@"OtherEntity" inManagedObjectContext:[self managedObjectContext]]; NSLog(@"otherEntity %@",[[entity relationshipsWithDestinationEntity: otherEntity ] description]);