Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 99505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:24:02+00:00 2026-05-11T00:24:02+00:00

Is there a way in Cocoa that is currently considered best practice for creating

  • 0

Is there a way in Cocoa that is currently considered best practice for creating a multi-tier or client server application?

I’m an experienced web developer and I really love Python. I’m new to Cocoa though. The application I’m toying with writing is a patient management system for a large hospital. The system is expected to store huge amounts of data over time but the data transferred during a single session is very light (mostly just text). The communication is assumed to occur over a local network (wired or wireless). It has to be highly secure, of course.

The best I could come up with is to write a Python REST web service and connect to it through the Cocoa app. Maybe I’ll even use Python to code the Cocoa app itself.

Looking at Cocoa, I see really great technologies in Cocoa like CoreData but I couldn’t find anything similar for client server development. I just want to make sure that I’m not missing anything.

What do you think?

Real world examples will be greatly appreciated.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:24:02+00:00Added an answer on May 11, 2026 at 12:24 am

    If you have control of both the client and server, and you can limit the client to OS X only, I second Marc’s answer. Cocoa’s distributed objects are an amazing technology and make RPC-style client-server apps very easy.

    If the requirements above are too restrictive for you, you still have many options available to you in the Cocoa world:

    1. You can code the entire client app in Python using PyObjC. With this approach, you can use the standard network code that you’re familiar with from the Python standard library. Twisted also integrates nicely with the Cocoa run loop (examples in the PyObjC example code) and I’ve had a lot of success using Twisted for network communication from with in a Cocoa app. If you choose to go this route, you may want to code the client app in Objective-C and load the python code as a plugin (using NSBundle). PyObjC’s py2app can compile loadable bundles from python code.

    2. You can use NSURLConnection for high-level access to an HTTP-based server.

    3. Dropping down a level of abstraction, you can use Cocoa’s NSStream to implement your network protocol. The class documentation is here, with links to example code demonstrating HTTP and SOAP protocols.

    4. You can drop a further level down and use the CFNetwork classes. NSStream is based on CFNetwork, but you have lower-level control over the line using CFNetwork.

    Finally, the Apple technology for client-server architectures is the WebObjects framework.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 52k
  • Answers 52k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer What you are describing is not possible. The JavaScript thread/runtime… May 11, 2026 at 6:39 am
  • added an answer I needed exactly something like this some time ago, when… May 11, 2026 at 6:39 am
  • added an answer One popular use of nested functions is closures. In a… May 11, 2026 at 6:39 am

Top Members

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.