寻找一种有效的方法: 使用类A,我完成了查询以获取一些A对象的RLMResults。类A的属性之一是指向类B的指针。什么是获取由A列表所指向的B的RLMResult的有效方法?
伪代码,从原始的Objective-C剥离
@interface A : RLMObject
@property B* referencedObject;
@property NSString* mynameroot;
// other stuff
@end
+ (RLMResults*)references:(NSString*)parameter
{
RLMResults* temp1 = [TJJoin objectsWhere:@"mynameroot==%@",parameter];
// now have a list of the appropriate As
// need a list of the Bs that are pointed to by those As
RLMResults* temp2 = [temp1 ????
return temp2;
}