Hi ,
I have an in game pushed scene(to resemble and in game menu) that calls the same function(upgradeHealth) on all levels, levels are inherited from Layer.
//this is global
Layer *currentLevelPtr;
//at init of leve7 for example
currentLevelPtr = self;
What I have done is creating a global pointer of the type Layer, then assign it to self in the
initializer of the level when creating it. At the pushed scene(menu) I call the function using
[currentLevelPtr upgradeHealth:250];
--This is working fine-- however, a warning from the compiler:
'warning: Layer may not respond to -upgradeHealth:'
(Messages without matching method signature will be assumed to return 'id' and accept '...' as arguments.)
Can this cause a problem later on ? I mean what are the implications of having an
unresolved warning in the project.
Many thanks in advance