2. Initialize the memory with whatever details ObjC needs to know
what kind of object this is
Oh didn't answer this question in my prior email.
Allocation doesn't initialize an object, to initialize an object you
need to send the object a message for its designated initializer or
to some specific initializer. In the case of NSObject the designated
initializer is "init".
Anyway this what I think you could do, not knowing exactly why you
want to do it this way (written in mail and on little coffee)...
ArenaNSObject* ao = (ArenaNSObject*) obj;
ao->arena = arena;
...etc...
return [obj autorelese];
}
@end
Again it is likely cleaner just to make "Arena" a subclass of
NSObject if that is possible or wrap Arena with a normal NSObject
subclass.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden