Possible Duplicate:
objective c difference between id and void *
For example, an UIView animation delegate callback method has this argument:
context:(void*)context
Why not simply id? I always pass nil if I don’t care about an context. But when I want one, I pass the object. What’s the difference? Why did they prefer void* over id?
id is a pointer to a struct which has
isapointer (which denotes to ObjectiveC runtime that this “thing” is object).void*is simply a pointer to possibly anything (probably anotherid).