Best way to do interprocess communication on Mac OS X

后端 未结 3 1407
[愿得一人]
[愿得一人] 2020-12-01 02:53

I\'m looking at building a Cocoa application on the Mac with a back-end daemon process (really just a mostly-headless Cocoa app, probably), along with 0 or more \"client\" a

3条回答
  •  借酒劲吻你
    2020-12-01 03:46

    Disclaimer: Distributed Objects are not available on iPhone.


    Why do you find distributed objects inelegant? They sounds like a good match here:

    • transparent marshalling of fundamental types and Objective-C classes
    • it doesn't really matter wether clients are local or remote
    • not much additional work for Cocoa-based applications

    The documentation might make it sound like more work then it actually is, but all you basically have to do is to use protocols cleanly and export, or respectively connect to, the servers root object.
    The rest should happen automagically behind the scenes for you in the given scenario.

提交回复
热议问题