I would like to set value of an NSArray object, monthlyRain, to a particular value
-(void)setMonth:(NSNumber *)month AmountOfRain:(NSNumber *)rain
{
if([monthlyRain objectAtIndex:[month unsignedIntValue]] != rain)
{
// set monthly value for the month given by the index to the amount
// rain
}
}
but I cannot find an appropriate method. Would appreciate any help.
Thanks,
Vikram
==========================================================
Dr. Vikram Vyas
Physics Department , St. Stephen's College, Delhi University, Delhi, India
&
Associate, International Centre for Theoretical Physics, Trieste, Italy
==========================================================