JSONKit icon indicating copy to clipboard operation
JSONKit copied to clipboard

Fixed Depreacted property Assignment

Open mdewolfe opened this issue 13 years ago • 5 comments

objects->isa has been deprecated to favour object_setClass(id object, Class class)

mdewolfe avatar Jan 28 '13 21:01 mdewolfe

#pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-objc-isa-usage" array->isa = _JKArrayClass; #pragma clang diagnostic pop

fixes any warning

hdacosta avatar Jan 31 '13 10:01 hdacosta

@hdacosta awesome!

Yoonster avatar Feb 01 '13 08:02 Yoonster

@hdacosta What is reasoning behind siliencing the warning over using object_setClass()?

mdewolfe avatar Feb 20 '13 02:02 mdewolfe

@mdewolfe everything works fine even if new Xcode version complains, I don't want to :

  1. test each project where i use JSONKit to check if everything goes fine after object_setClass()
  2. loose cpu cycles, which is the reason why i use JSONKit over NSJSONSerialization for example. My current application parses json files that weights 600K-1M

hdacosta avatar Feb 20 '13 16:02 hdacosta

@hdacosta Cool. Was just wondering.

mdewolfe avatar Feb 20 '13 16:02 mdewolfe