Giter Site home page Giter Site logo

Comments (6)

bigfish24 avatar bigfish24 commented on June 23, 2024

Commenting this out will break things. Any chance you could provide me with your project privately to debug? I haven't encountered this error, so it is probably related to the installation or some conflict with Cocoapods assuming you installed that way.

from rbqfetchedresultscontroller.

bigfish24 avatar bigfish24 commented on June 23, 2024

Also, if you have commented this out, then this is likely the reason why you are not seeing any changes reported in this issue: #63

from rbqfetchedresultscontroller.

jasper-ch-chan avatar jasper-ch-chan commented on June 23, 2024

@bigfish24 I think the problem is because there are other functions (namely my thrift API) that uses the method name hash, and since _primaryKeyValue is of type id, it can mean any of them. Would it be alright to change it to RLMObject type instead of id?

from rbqfetchedresultscontroller.

bigfish24 avatar bigfish24 commented on June 23, 2024

@jasper-ch-chan no it does need to be id because the primary key value can be NSString or NSNumber since Realm supports indexes on strings and integers.

from rbqfetchedresultscontroller.

bigfish24 avatar bigfish24 commented on June 23, 2024

Are you sure you are not conflicting with hash which is a method on NSObject in your code for the thrift API?

from rbqfetchedresultscontroller.

jasper-ch-chan avatar jasper-ch-chan commented on June 23, 2024

So when I command click on the hash function, it shows all the hash functions it finds. NSObject is one of them, but it also lists out all the other hash functions in our API file. Is there another way to get around this?

Edit: Another way to phrase it is, if I know my primary key for all objects is always long long, can I change it from id to long long?

from rbqfetchedresultscontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.