Realm Cocoa 0.87.4

We just pushed a Realm Objective-C update to this website and to CocoaPods. Here’s what’s new!

Inverse Relationships

It’s now possible to obtain all objects linking to a given object through a specific property, also known as inverse relationships or backlinks. For example, calling -linkingObjectsOfClass:forProperty: on a Dog instance will return all objects of the specified class linking to the calling instance with the specified property. It’s possible to simplify this pattern by defining a read-only owners property on Dog:

Bug Fixes

  • This version fixes a bug where Realm would crash due to missing search index when migrating an object with a string primary key in a database created using an older versions (0.86.3 and earlier).
  • An exception is now thrown when passing an array containing a non-RLMObject to -[RLMRealm addObjects:].
  • This version includes a fix a crash occurring when deleting an object from multiple threads.

Thanks for reading. Now go forth and build amazing apps with Realm! As always, we’re around on the mailing list, StackOverflow, GitHub, twitter and email.