Im using a basic timer that calls a method which is defined as below:
- (void) refresh:(id)obj
{
if (obj == YES) doSomething;
}
I want to call this method from certain areas of my code and also from a timer
[NSTimer scheduledTimerWithTimeInterval:refreshInterval
target:self
selector:@selector(refresh:)
userInfo:nil
repeats:YES];
When I put YES
as the argument for the userInfo parameter I get an EXEC_BAD_ACCESS error why is this?
Can someone help me do this the right way so that there is no ugly casting and such?
Thanks Mark