What's wrong with this????
What's wrong with this????
- Subject: What's wrong with this????
- From: Aidas <email@hidden>
- Date: Fri, 26 Jul 2002 02:50:00 +0200
Hello,
For over three days I was checking this code and I can't find what's wrong
in it and why it isn't working.
Here is the code:
{
NSArray *neisverstu_zodziu_sarasas;
int i;
int y;
id theRecord,vertas,theRecord2,vertas2,vertas3;
int rasto_zodzio_numeris;
NSString* paieskos_zodis;
NSString* surastas_vertimas;
NSString* vvv;
NSString* zzz;
NSString* isverstas_tekstas;
isverstas_tekstas=[verstiTF stringValue];
neisverstu_zodziu_sarasas=[[verstiTF stringValue]
componentsSeparatedByString:@" "];
for (i=0;i<[neisverstu_zodziu_sarasas count];i++)
{
paieskos_zodis=[neisverstu_zodziu_sarasas objectAtIndex:i];
rasto_zodzio_numeris=[self paieska:paieskos_zodis];
theRecord = [records objectAtIndex:rasto_zodzio_numeris];
vertas=[theRecord objectForKey:@"vertejui"];
surastas_vertimas=vertas;
//iki cia tai simtu procentu viskas gerai
//[verstini_z addObject:[self createRecordVertejui:paieskos_zodis
vErtimas:surastas_vertimas]];
[verstini_z addObject:paieskos_zodis];
[verstini_z2 addObject:surastas_vertimas];
}
for (y=0;y<[neisverstu_zodziu_sarasas count];y++)
{
//theRecord2 = [verstini_z objectAtIndex:y];
//vertas2=[theRecord2 objectForKey:@"zz"];
//vertas3=[theRecord2 objectForKey:@"vv"];
vertas2=[verstini_z objectAtIndex:y];
vertas3=[verstini_z2 objectAtIndex:y];
zzz=vertas2;
vvv=vertas3;
isverstas_tekstas=[[isverstas_tekstas componentsSeparatedByString:zzz]
componentsJoinedByString:vvv];
[verstiTF setIntValue:[verstini_z count]];
}
}
My question is why verstini_z count returns zero why it shouldn't. Anybody
knows why?
Thanks
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.