Code:
thephotoQueue = [[[NSOperationQueue alloc] init] autorelease];
[thephotoQueue setMaxConcurrentOperationCount:1];
NSInteger i;
for (i = 0; i <=kNumImages -1; i++)
{
NSInvocationOperation* thephotoOp = [[NSInvocationOperation alloc] initWithTarget:self selector:@selector(loadpropphotos:) object:i];
//Passing argument 3 of 'initwithTarget:selector:object' makes pointer from integer without cast
NSLog(@"Queuing new thread");
[thephotoQueue addOperation:thephotoOp];
}
How would i pass an int to the selector?