Ho dei problemi nel capire perché ottengo un messaggio d'errore del tipo
incompatible integer to pointer conversion passing int to parameter of type int *
su un oggetto come questo:
Oggetto *tempOggetto = [[Oggetto alloc] init];
int numero = 5;
tempOggetto.valore = numero; //L'errore è qui [incompatible integer to pointer conversion passing int to parameter of type int *]
dove Oggetto è:
@interface Oggetto : NSObject{
@public
@private
int *valore;
@protected
}
@property(nonatomic,readwrite,assign) int *valore;
@end
---------------------------------------------------------------------------
@implementation Numero
@synthesize valore;
@end
Aiutatemi. Al momento mi sento un po' stranito