-(BOOL)KickTimer:(unsigned short) wTimerIds
{
operation1 = [[NSInvocationOperation alloc]initWithTarget:self selector:
@selector(insertEvent:) object:pEvent];
}
-(void)insertEvent:(stRs232Timer*)pEvent
{
//stmts;
}
I could not invoke this function.Is
this way of invoking a thread with single parameter is correct.
EDITED
pEvent = (stRs232Timer*)[[m_cAppIdMap objectForKey:[NSNumber
numberWithUnsignedShort:wTimerIds]]bytes];
Warning:
Warning: passing argument 3 of 'initWithTarget:selector:object:'
from incompatible pointer type
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…