0

有谁告诉是 GNUstep NSRunLoop 扩展功能:

  • (void) addEvent: (void*)data type: (RunLoopEventType)type watcher: (id)watcher forMode: (NSString*)mode;

这种方法有效吗?如何设置参数数据?我设置了一个管道来读取文件描述,但它似乎不能正常工作。真的很难弄清楚这个问题,有人可以帮助我吗?

4

1 回答 1

0

This method works. Please show more of your code.

eg. for reading, [[NSRunLoop currentRunLoop] addEvent: (void*)anFd type: ET_RDESC watcher: anObj // must implement receivedEvent:type:extra:forMode: forMode: NSDefaultRunLoopMode]; // rtfm

于 2012-12-22T02:11:37.930 回答