Giter Club home page Giter Club logo

Comments (6)

mikeash avatar mikeash commented on July 18, 2024

Fine by me! Attribution in the readme would be great, if the amount of code you've used warrants it, but anything which fulfills the terms of the license is ultimately fine by me (or else I wouldn't use that license!). No other comments, except that it's great to see someone building something based on the stuff I've made.

from maobjcruntime.

jagill avatar jagill commented on July 18, 2024

Thanks! If you want to take a look at it, you can find it at
https://github.com/jagill/JAGPropertyConverter

from maobjcruntime.

mikeash avatar mikeash commented on July 18, 2024

Neat idea. Reminds me a little of Google Protobuf, but operating at a somewhat higher level.

This statement in the readme confuses me a bit: "Since JAGPropertyConverter uses Key-Value coding to get/set values, it doesn't respect custom getters and setters" I thought KVC dealt fine with those. Have I misunderstood?

Anyway, cool stuff, and just the sort of thing I hoped to enable with my code.

from maobjcruntime.

jagill avatar jagill commented on July 18, 2024

My understanding of KVC (largely based on this doc ) is that when getting/setting a property named foo, they look for methods getFoo, foo, isFoo and setFoo:, respectively. I haven't delved into this too deeply, so if you know of a way that KVC can handle
@property (assign, getter = checkIsActive, setter = makeActive:) BOOL active;
I'd love to know about it!

from maobjcruntime.

jagill avatar jagill commented on July 18, 2024

Oh, I believe you meant custom-implemented setFoo: and foo methods. Yes, KVC should handle that -- I'll update the documentation. Thanks!

from maobjcruntime.

mikeash avatar mikeash commented on July 18, 2024

Yep, that was my point of confusion. I don't know whether KVC can handle custom accessor names, wouldn't surprise me if it couldn't. That could lead to some "interesting" behavior if your backing ivar does match the pattern that KVC looks for.

from maobjcruntime.

Related Issues (9)

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.