Isn't there a huge memory leak?
Creating a new pointer on each iteration without keeping track of them.
I might be wrong I've been doing games in CL for some time now.
I might be wrong I've been doing games in CL for some time now.
But if OP is expecting a lifetime of learning, he might want to push a new autorelease pool for each iteration.
-(void) dealloc {
self.newProgram = nil;
}as an exercise for the reader.