
Untitled
By: a guest on
Jun 17th, 2012 | syntax:
None | size: 0.70 KB | hits: 14 | expires: Never
Accessing Unknown 'ID' class method-Objective C
#define DECLARE_RS232_NEWMSG(ClassID)
enum
{
ID = ClassID
};
@interface RS232MsgGetEventDescriptions : RS232Msg
{
}
@end
@implementation RS232MsgGetEventDescriptions
DECLARE_RS232_NEWMSG(RM_GET_EVENT_DESCRIPTIONS);
@end
-(void)event
{
service = [CServiceAppDlg alloc];
if ([service:(REMOTE_MESSAGE_ID)RS232MsgGetEventDescriptions.ID withEvent:pEvent])
{
NSLog(@"Get Event descriptions!!");
}
}
object.methodName; // Becomes [object methodName]
object.methodName = value; // Becomes [object setMethodName:value]