/ Published in: Objective C
There seems to be an bugrelated to static libraries with an implementation file that contains ONLY implementations of category methods. The FIXCATEGORYBUG macro basically just expands to define an interface and implementation of that interface with no methods, just to force something into the .m file that isn't a category.
Expand |
Embed | Plain Text
//CategoryBugHack.h #define FIX_CATEGORY_BUG(name) @interface FIX_CATEGORY_BUG##name @end @implementation FIX_CATEGORY_BUG##name @end Then the category .h/.m ... //NSStringCategory.h // etc, etc @end //NSStringCategory.m #import "CategoryBugHack.h" FIX_CATEGORY_BUG(NSString_MyAdditions) // etc, etc @end
You need to login to post a comment.
