Code Monkey home page Code Monkey logo

nsobject-nscoding's People

Contributors

aviell avatar greenisus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nsobject-nscoding's Issues

Feature Request: ARC

Could you enable ARC support? I know this is pulled from another project, not sure if that's something you're willing to take on -- it 's something I'm not technically capable of myself yet, though.
For now I'm just using --fno-objc-arc, but it would make integration easier in the future for others.

Strange value is returned when "autoEncodeWithCoder"-method deals with NSInteger type

Hi, greenisus. I very like your extension. But recently found a strange behavior. I tried to perform encoding operation with my class, where one of the field is NSInteger property:
@Property (nonatomic, assign) NSInteger userID;

I have noticed after encoding operation I got a wrong value in userID field. It contained 0 (in my case). I decided to deep into and found that actually I pass a correct number:12. Than - (void)autoEncodeWithCoder:(NSCoder *)coder is called.
This method gets Class properties and calls - (NSMutableDictionary *)propertiesForClass:(Class)klass {
Here I saw, that my NSInteger extracted via
NSString *pattrs = [NSString stringWithCString:property_getAttributes(property) encoding:NSUTF8StringEncoding];

and pattrs contains "Tq,N,V_userID"
I went to official documentation:https://developer.apple.com/library/mac/documentation/cocoa/conceptual/objcruntimeguide/articles/ocrtpropertyintrospection.html

And did not find specificator 'q'. Maybe apple has changed smith. But in your code you don't handle this 'q' case in your switch-case block in both methods:

  • (void)autoDecode:(NSCoder *)coder
  • (void)autoEncodeWithCoder:(NSCoder *)coder

you have case 'Q': // unsigned long long
but this 'q' do the same as case 'i': // int

when I added these cases, NSInteger encoding/decoding began work properly.

Error with Parse SDK 1.12

Hi,
I've update the Parse SDK to 1.12 Version just to make a migration to heroku but now i've found a lot of error by using your library but i wasn't able to find the relative log error....
Can you please help me to find a solution ?
Do you have any update of that library ?
Best Regards...

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.