I am getting an error while trying to compare with the pointer to the structure.
-(BOOL)findAndRemoveEvent:(const stRs232Timer*)pEvent
{
int index;
index = [m_cPendingEventList count];
for(int i=0;i<index;i++)
{
if(([m_cPendingEventList objectAtIndex:i]) isEqual:pEvent)
{
NSLog(@"Found the event to remove!!");
[m_cPendingEventList removeObjectAtIndex:i];
NSLog(@"Event Removed!!");
}
}
return YES;
}
pEvent is the pointer to the structure stRs232Timer.
Error:Expecte ‘)’ before isEqual.I’m sure that I havent made any mistake with the
paranthesis.
Try this ways
Good luck !