Q:

Realm Cocoa can't update property of realm objects

I'm using Realm Cocoa and met one problem here, I can't update property of realm objects, 
RLMRealm *realm = [RLMRealm defaultRealm];

SomeObject *obj = [SomeObject objectForPrimaryKey: objectID];
if(obj){
  NSError *error;
  [realm transactionWithBlock:^{
    obj.someProperty = @YES;
  } error: &error];
}

SomeObject is subclass of RLMObject, someProperty is a property of type RLMBool
NSNumber<RLMBool> *someProperty

I checked the error which is nil, which means the transaction was succeeded.
But someObject is never updated as expected. 
I also checked the property in Realm browser, which is not updated either.(it's always false).
Please help.

A:

Sorry about this question, I just found out that I accidentally Modified someProperty to @NO in another thread which may happen after the code block in the question, the code block is actually working as expected. Maybe I shouldn't suspect Realm at the beginning.

