75 |
id retval = nil; |
id retval = nil; |
76 |
int i; |
int i; |
77 |
|
|
78 |
/* FIXME: step < 0? */ |
if (step > 0) |
|
for(i=[self intValue];i<=number;i+=step) |
|
79 |
{ |
{ |
80 |
retval = [block valueWith:[NSNumber numberWithInt:i]]; |
for(i=[self intValue];i<=number;i+=step) |
81 |
|
{ |
82 |
|
retval = [block valueWith:[NSNumber numberWithInt:i]]; |
83 |
|
} |
84 |
} |
} |
85 |
|
else |
86 |
|
{ |
87 |
|
// step =< 0 |
88 |
|
for(i=[self intValue];i>=number;i+=step) |
89 |
|
{ |
90 |
|
retval = [block valueWith:[NSNumber numberWithInt:i]]; |
91 |
|
} |
92 |
|
} |
93 |
|
|
94 |
return retval; |
return retval; |
95 |
} |
} |
96 |
@end |
@end |