Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Direct access to objective-c's isa is deprecated in favor of object_setClass() and object_getClass() #106
I researched this. Seems isa holds the class for the object. The warnings can be eliminated by replacing the offending lines with:
object_setClass(dictionary, _JKDictionaryClass); // Dictionary case
Haven't tested this yet, but I did verify that the changes eliminate the warnings in Xcode 4.6 DP2.
referenced this issue
Nov 25, 2012
I have the object_setClass fix in production. I haven't measured the performance impact, but saw the notes below in the comments of JSONKit.m, which makes me believe that the change will hurt performance. For my application it's good enough.
// Why not just use