warning: No wax_originalAllocWithZone method found

43 views
Skip to first unread message

glub32

unread,
Oct 9, 2011, 11:46:44 PM10/9/11
to iPhone Wax
Hi,

I just downloaded probablycorey-wax-177533b.zip. I'm getting this
warning running a hello world lua app:

"warning: No wax_originalAllocWithZone method found"

wax_class.m:
static id allocWithZone(id self, SEL _cmd, NSZone *zone) {
lua_State *L = wax_currentLuaState();
BEGIN_STACK_MODIFY(L);

id instance = [self wax_originalAllocWithZone:zone];

Any idea how to fix it?

Thanks

Andy Bower

unread,
Sep 25, 2012, 12:55:33 PM9/25/12
to ipho...@googlegroups.com
Hi,

I just fixed this warning by added an interface extension declaration for NSObject immediately before the allocWithZone: method that is causing the warning. Like this:

@interface NSObject ()

-(id) wax_originalAllocWithZone: (NSZone*) zone;

@end


Best regards
Reply all
Reply to author
Forward
0 new messages