bugsense/plcrashreporter-bugsense — Issue #12: Remove the need for the -all_load flag
Author: grantland
Created: 2011-10-26 21:18:01+00:00
State: open

It would be nice to remove the need for the -all_load flag. Three20Core has developed a category fix that you could use on all the categories in JSONKit to remove the need for -all_load.

Code:

```
/*
* CategoryFix.h
* Three20Core
*
* Created by jamie on 6/11/10.
* Copyright 2010 binaryfinery.com. All rights reserved.
*
*/

#define FIX_CATEGORY_BUG(name) @interface FIXCATEGORYBUG ## name @end @implementation FIXCATEGORYBUG ## name @end
```

Usage:

```
#import "CategoryFix.h"

@implementation NSDictionary (NSDictionary_JSONExtensions)

...

@end
FIX_CATEGORY_BUG(NSDictionary_JSONExtensions)
```