Code Monkey home page Code Monkey logo

Comments (6)

lukeredpath avatar lukeredpath commented on July 20, 2024

I'm unable to reproduce this issue. I've committed some examples that build and pass for me:

allending@3bd4e40

Could you provide some more information about your project? What version of iOS are you using and which compiler?

from kiwi.

joshuatbrown avatar joshuatbrown commented on July 20, 2024

I checked out the examples you committed and found one difference: I don't have an implementation of the dynamic properties. So, for example, your -(NSString *)classification method doesn't exist in my code. It's automatically generated by Core Data. See the Modeled Properties section here:

http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/CoreData/Articles/cdManagedObjects.html

So can I stub methods that are declared as properties but don't really exist?

from kiwi.

lukeredpath avatar lukeredpath commented on July 20, 2024

Interesting, I'll have to have a deeper look at this. It probably comes down to how Core Data is generating these methods at runtime. It might be that a special-case workaround is needed for sub-classes of NSManagedObject.

from kiwi.

yuanfeiz avatar yuanfeiz commented on July 20, 2024

Have a look at this question and answers:
http://stackoverflow.com/questions/1876568/ocmock-with-core-data-dynamic-properties-problem

from kiwi.

grassdog avatar grassdog commented on July 20, 2024

I've run into this as well. Do folks extract out protocols to work around this like stranbird mentions?

from kiwi.

allending avatar allending commented on July 20, 2024

Closing, in general I'd say this is lower priority for Kiwi at this point with regards to #176.

from kiwi.

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.