I need to get access to an object inside a C function similar to this few code
@interface MixerHostAudio () <UIApplicationDelegate>
@property (readwrite) int *alternativeOutput;
@end
@implementation MyCode
@synthesize alternative
void audioInputAvailable () {
alternative=1;
}
I get this error: " 'Use of undeclared identifier 'alternative' "
Any ideas about how can i solve it ?
@synthesizea@propertyas something other than its exact name, you have to use the format:@synthesize propertyName = synthesizedName;. But chances are pretty good that you should be accessing them viaself.anyway.