The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > Developer > Omni Frameworks
FAQ Members List Calendar Today's Posts

 
TCPCFSocket Thread Tools Search this Thread Display Modes
Hi,

There's a small subclass to ONTCPSocket - TCPCFSocket, which allows a process to hook an ONTCPSocket into the NSRunLoop so that AppKit UI events and socket I/O are managed in a single place.
http://wodeveloper.com/omniLists/mac.../msg00748.html

I use this code:

TCPCFSocket *socket;
....
socket = [TCPCFSocket tcpSocket];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(__runloopReceiver:) name:@"TCPCFSocketDataAvailableNotification" object:nil];
[socket dataAvailableWithNotification];

Problem: debugger console widow always says me that
-[ONTCPSocket dataAvailableWithNotification]: unrecognized selector sent to instance 0x012345

Like i'am trying to use ONTCPSocket instead of TCPCFSocket... But I even don't import OmniNetworking.h (only TCPCFSocket.h).

Where is the problem? I completely confused.

Thanks for any help!
 
 





All times are GMT -8. The time now is 08:39 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.