I want to pass BOOL to [NSArray makeObjectsPerformSelector:withObject:]
as a parameter. E.g.
[buttons makeObjectsPerformSelector:@selector(setEnabled:) withObject: NO];
The above code won't work because withObject only accepts id.
What's the right way to do it?
I seen some code with this:
[buttons makeObjectsPerformSelector:@selector(setEnabled:) withObject: (id)kCFBooleanTrue];
[buttons makeObjectsPerformSelector:@selector(setEnabled:) withObject: (id)kCFBooleanFalse];
This works fine on 4.2 simulator but fails on 4.2 iphone.