You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Moved the +load logic from JSONDecoder in to jk_collectionClassLoadTimeInitialization(). Missed the JSONDecoder +load stuff on the last commit. Related to issue johnezang#23.
Copy file name to clipboardExpand all lines: JSONKit.m
+20-25Lines changed: 20 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -614,22 +614,37 @@ - (void)releaseState;
614
614
// Basically, there seem to be a problem with using +load in static libraries on iOS. However, __attribute__ ((constructor)) does work correctly.
615
615
// Since we do not require anything "special" that +load provides, and we can accomplish the same thing using __attribute__ ((constructor)), the +load logic was moved here.
NSAutoreleasePool *pool = [[NSAutoreleasePoolalloc] init]; // Though technically not required, the run time environment at +load time may be less than ideal.
630
+
NSAutoreleasePool *pool = [[NSAutoreleasePoolalloc] init]; // Though technically not required, the run time environment at load time initialization may be less than ideal.
NSAutoreleasePool *pool = [[NSAutoreleasePoolalloc] init]; // Though technically not required, the run time environment at +load time may be less than ideal.
0 commit comments