discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to set value in NSArray


From: Vikram Vyas
Subject: How to set value in NSArray
Date: Tue, 13 Jul 2004 21:39:28 +0530


Hello,

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
==========================================================

reply via email to

[Prev in Thread] Current Thread [Next in Thread]