CPDistributedMessagingCenter.h 601 B

1234567891011121314151617
  1. @interface CPDistributedMessagingCenter : NSObject
  2. + (instancetype)centerNamed:(NSString *)name;
  3. - (void)runServer;
  4. - (void)runServerOnCurrentThread;
  5. - (void)stopServer;
  6. - (void)registerForMessageName:(NSString *)messageName target:(id)target selector:(SEL)selector;
  7. - (BOOL)sendMessageName:(NSString *)messageName userInfo:(NSDictionary *)userInfo;
  8. - (NSDictionary *)sendMessageAndReceiveReplyName:(NSString *)messageName userInfo:(NSDictionary *)userInfo;
  9. - (NSDictionary *)sendMessageAndReceiveReplyName:(NSString *)messageName userInfo:(NSDictionary *)userInfo error:(NSError **)error;
  10. @end