Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.70 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Accessing Unknown 'ID' class method-Objective C
  2. #define DECLARE_RS232_NEWMSG(ClassID)
  3. enum                                
  4. {                                    
  5. ID = ClassID                        
  6. };                                  
  7.  
  8. @interface RS232MsgGetEventDescriptions : RS232Msg
  9. {
  10.  
  11. }
  12. @end
  13.        
  14. @implementation RS232MsgGetEventDescriptions
  15.  
  16.  DECLARE_RS232_NEWMSG(RM_GET_EVENT_DESCRIPTIONS);
  17. @end
  18.        
  19. -(void)event
  20. {
  21. service = [CServiceAppDlg alloc];
  22. if ([service:(REMOTE_MESSAGE_ID)RS232MsgGetEventDescriptions.ID withEvent:pEvent])
  23.  {
  24.     NSLog(@"Get Event descriptions!!");
  25.  }
  26. }
  27.        
  28. object.methodName;  // Becomes [object methodName]
  29. object.methodName = value;    // Becomes [object setMethodName:value]