RLMCollection Protocol Reference
Conforms to | NSFastEnumeration |
Declared in | RLMCollection.h |
Instance Methods
setValue:forKey:
Invokes setValue:forKey:
on each of the collection’s objects using the specified value and key.
- (void)setValue:(nullable id)value forKey:(NSString *)key
Parameters
- value
The object value.
- key
The name of the property.
Discussion
Warning: This method can only be called during a write transaction.
Declared In
RLMCollection.h
valueForKey:
Returns an NSArray containing the results of invoking valueForKey:
using key on each of the collection’s objects.
- (nullable id)valueForKey:(NSString *)key
Parameters
- key
The name of the property.
Return Value
NSArray containing the results of invoking valueForKey:
using key on each of the collection’s objects.
Declared In
RLMCollection.h