Of course you can. This example simply grabs the person object from an external context (by default, one or any) and gives you a pointer to it in localContext so you can update it in the background. If you created person from scratch, you could do something like this:
[MagicalRecord saveInBackgroundWithBlock:^(NSManagedObjectContext *localContext){ Person *localPerson = [Person MR_createInContext:localContext]; localPerson.firstName = @"John"; localPerson.lastName = @"Appleseed"; }];
And you're done.
PS. Note that MR_createInContext: is a class method called the person class (instead of MR_inContext: the instance method that is called on the person instance).
source share