I am new to Objective C. I am porting the cpp code to Objective C.
pMsg->TxCreateImage((INT8U*)m_cData.m_abTxMsgImage,m_cData.m_nTxImageSize);
TxCreateImage((INT8U*)pData,int uLen)
{
func definition;
}
TxCreateImage is a function call. m_cData is the object of another class.
Is this Objective C equivalent correct.
Data* pMsg = [[Data alloc]init];
Ds* m_cData;
[pMsg TxCreateImage:(int *)[m_cData m_abTxMsgImage] :(int)[m_cData m_nTxImageSize]];
- (void)TxCreateImage:(int*)pData :(int)uLen
{
//func definition;
}
I am getting exceptions like,
-[Packet m_nTxImageSize]: unrecognized selector sent to instance 0x100831e00
2011-05-04 17:11:07.756 Test-packetCreation[4633:a0f] *** Terminating app due to uncaught
exception 'NSInvalidArgumentException', reason: '-[Ds m_nTxImageSize]: unrecognized
selector sent to instance 0x100831e00'