Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinit loop under iOS 8 (beta 5 atm) #18

Open
gregKawet opened this issue Aug 5, 2014 · 1 comment
Open

Infinit loop under iOS 8 (beta 5 atm) #18

gregKawet opened this issue Aug 5, 2014 · 1 comment

Comments

@gregKawet
Copy link

Hello,

For some reason, class_copyPropertyList() - used in the JastorRuntimeHelper/propertyNames: method - now returns additional keys such as 'hash', 'superclass', 'debugDescription' and... 'description'.
That last key seems to interfere with the Jastor's description method and results in infinit loops.

That quick and dirty fix made it works for me (in the propertyNames: method of JastorRuntimeHelper.m) :

NSString *string = [NSString stringWithUTF8String:name];
if(![string isEqualToString:@"description"] && ![string isEqualToString:@"superclass"] && ![string isEqualToString:@"hash"] && ![string isEqualToString:@"debugDescription"])
[propertyNamesArray addObject:string];

@elado
Copy link
Owner

elado commented Aug 5, 2014

Just updated README with more up-to-date alternatives to Jastor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants