Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Network abstraction framework for Cocoa/CocoaTouch apps Network
After trying to find a simple and elegant way to make my applications talk to each other over the network (and being tired of digging through all the socket related C API every time), I found a very nice network abstraction framework.

ThoMoNetworking is completely Objective-C, requires less then ten lines of code to use, and works both on the desktop and on all of Apple's mobile devices (iPhone and iPad). A disk image with the framework libraries, source code, documentation and examples are available from the developers' site. Some of the limitations of the library are also pointed out there, and you should read them before using it.

ThoMoNetworking gives you client and server classes that connect automatically via Bonjour - nothing to do on your side. Pass an object to the server, and it will pop out at the client, and vice versa. If you want, have your object distributed to all connected clients in one go. It couldn't be much simpler. ThoMoNetworking is under an MIT-like license so you can use it in almost any way you want. The full license text is included in the download package.

[crarko adds: I haven't tested this one, but did look through the disk image to make sure the source code was there, for debugging and verification purposes. You may also need to rebuild this if the target SDK changes.]
    •    
  • Currently 3.37 / 5
  You rated: 3 / 5 (30 votes cast)
 
[6,809 views]  

Network abstraction framework for Cocoa/CocoaTouch apps | 7 comments | Create New Account
Click here to return to the 'Network abstraction framework for Cocoa/CocoaTouch apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Network abstraction framework for Cocoa/CocoaTouch apps
Authored by: auco on May 28, '10 06:40:28PM

apologies for being blind: but where exactly is the source code?
The diskimages (both 1.0 and 1.1) only contain headers, example code and a precompiled .framework. I couldn't find no other links on the project page either, and a quick websearch didn't reveal anything besides this hint.

I had my experiences with precompiled frameworks that stopped working after the next OS update. Looked too good to be true :-(



[ Reply to This | # ]
Network abstraction framework for Cocoa/CocoaTouch apps
Authored by: jeremyp on May 30, '10 08:44:51AM

There appears to be no source code. Also, the framework doesn't support garbage collection.



[ Reply to This | # ]
Network abstraction framework for Cocoa/CocoaTouch apps
Authored by: crarko on May 30, '10 09:20:27AM

OK, I'm emailing the developers for a pointer to the framework source; the source on the disk images is example code only.

~Craig



[ Reply to This | # ]
Network abstraction framework for Cocoa/CocoaTouch apps
Authored by: nebula_1979 on May 31, '10 03:01:42AM

This framwork is very interesting on the paper, but if no sources available it's a risk to use it.



[ Reply to This | # ]
Network abstraction framework for Cocoa/CocoaTouch apps
Authored by: crarko on May 31, '10 03:52:46AM

Per request, the developers have created a new disk image that has the framework source as well. It replaced the earlier ones, so go grab the latest version and see what you think.

I have also mirrored this version of the disk image at:

http://www.macosxhints.com/dlfiles/ThoMoNetworking.dmg

Thanks for the feedback,

~Craig

Edited on May 31, '10 04:04:01AM by crarko



[ Reply to This | # ]
Network abstraction framework for Cocoa/CocoaTouch apps
Authored by: auco on May 31, '10 12:53:38PM

Yay, that's great!
Thanks Craig :)



[ Reply to This | # ]
Network abstraction framework for Cocoa/CocoaTouch apps
Authored by: nebula_1979 on May 31, '10 01:26:24PM

Thank you for the quick update. I download it and I build it and it's working all except if I build for all targets as base SDK.
This is the error prompt.
"_objc_msgSendSuper2", referenced from:
-[ThoMoClientStub initWithProtocolIdentifier:] in ThoMoClientStub.o
-[ThoMoClientStub dealloc] in ThoMoClientStub.o
-[ThoMoClientStub connectedServers] in ThoMoClientStub.o
...
...
...
ld: symbol(s) not found

For iPhone Base SDK target it works as it works if I select Mac OS 10.5 SDK.

Thanks



[ Reply to This | # ]