i want to get the executable path of my bundle. (i want to get the path so i can load images in a NSImageView)
i got this.
NSString * _Ruta_APP = [[NSString alloc] init];
_Ruta_APP = [[NSBundle mainBundle] bundlePath];
but the compiler says /ControlAPP.m:33:0 /ControlAPP.m:33: warning: local declaration of '_Ruta_APP' hides instance variable
but i cannot use the value of _Ruta_APP
anyone has an idea?
If you really wanted to keep the path in an instance variable, just kill the first line.
[_Ruta_APP autorelease];
_Ruta_APP = [[[NSBundle mainBundle] bundlePath] copy];