Basically, my problem is this:
-(void)aMethod:(id)object;
Ideally, I would use my method as follows:
NSObject*theObject;
[MysteryObject aMethod:theObject];
or like this:
[MysteryObject aMethod:NSObject]
In principle, this is a question. How to distinguish the variable 'id' simply from the type of the class or pointer to a living object?
source
share