Questions tagged [realm-cocoa]

20 questions
0
votes
3 answers

Realm in AsyncDisplayKit causes Termination - realm::IncorrectThreadException

I'm using RealmSwift with AsyncDisplayKit, I'm getting this error all the time from ASDataController.mm: libc++abi.dylib: terminating with uncaught exception of type realm::IncorrectThreadException: Realm accessed from incorrect thread. I have…
Alireza
  • 193
  • 2
  • 9
0
votes
0 answers

How to delete LinkingObjects from an Object in realm?

Lets say I have two models/objects for realm 1.0.0 - ArticleMO, and TagMO: class ArticleMO: Object { dynamic var title: String = "" let tags = List() } class TagMO: Object { dynamic var name: String = "" let articles =…
Austin
  • 1,369
  • 1
  • 13
  • 19
0
votes
1 answer

Proper way to implement one-to-many relationship in Realm

I've studied the documentation for Realm and understand the various classes that can be used to manage groups of objects. From what I understand, there are RLMArrays, RLMLinkingObjects, and RLMResults. I will use an example of a Blog class with many…
edward
  • 55
  • 8
0
votes
1 answer

How to get the most represented value in Realm?

I have a question regarding Realm on iOS. I have an object in my Realm DB that looks like this: class MyObject: Object { dynamic var id: Int! dynamic var val: String! } Let say I populate my table with those data: | id | val…
Nasedo47
  • 337
  • 3
  • 13
0
votes
1 answer

Upgraded from 0.95.3 to 0.96.3 Cocoa Realm, getting "Property 'id' has been made optional."

Upgrading from Realm 0.95.3 to Realm 0.96.3 Application errors out inside RLMObjectStore.mm:106 Throws error stating the properties have been made optional (lldb) po objectSchema DTFLogMessage { id { type = string; …
darren102
  • 2,830
  • 1
  • 22
  • 24
1
2