Browse files

exclude NSObject's properties serialization for preventing side effect.

In objective-c spec, NSObject has no properties.
But NSOject is extended some properties in iOS 4.0 SDK by Apple Inc.
(Exsactly, UIAccessibility.h functions is changed to properties. )
  • Loading branch information...
1 parent 9500f4f commit a3c7a6b5765cb2695712c832c9bca9d8fd6a6898 @neocoin neocoin committed with Joshua Vickery Aug 2, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/lib/Core/NSObject+PropertySupport.m
@@ -27,7 +27,7 @@ + (NSDictionary *)propertyNamesAndTypes {
//include superclass properties
Class currentClass = [self class];
- while (currentClass != nil) {
+ while (currentClass != nil && currentClass != [NSObject class]) {
// Get the raw list of properties
unsigned int outCount;
objc_property_t *propList = class_copyPropertyList(currentClass, &outCount);

5 comments on commit a3c7a6b

That fixed the save "bug" for me. Thanks!

Kudos man!!
Fixed my issues on 4.0 and up.

This patch worked like a charm! Thanks! :)

Thank you, worked!

Thank you so much!

Please sign in to comment.