• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Processing multiple objects w/NSTasks efficiently?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Processing multiple objects w/NSTasks efficiently?


  • Subject: Re: Processing multiple objects w/NSTasks efficiently?
  • From: Jordan Krushen <email@hidden>
  • Date: Mon, 7 Nov 2005 17:11:49 -0800

On 11/7/05, Kaelin Colclasure <email@hidden> wrote:

> On Nov 7, 2005, at 4:01 PM, Michael Carter wrote:
> > I need to query information from a couple hundred servers in an
> > efficient manner using a central application. My initial approach
> > is to create an array of objects which each contain an NSTask. This
> > task pulls information from a remote host using an ssh call in
> > order to display key info in an NSTableView. The columns of the
> > tableview are bound to the parameters needing display.

> OTOH, if SSH is a hard requirement, you might look around for a
> library that lets you open multiple SSH sessions from a single
> process. (I'm pretty sure I've heard of one, but it was probably for
> Linux [or perhaps Java], and in any case I can't recall where I came
> across it off the top of my head.)

If you're willing to learn Python and are familiar with async
programming in general (or even if you're not), a mix of these two
things can do all kinds of asynchronous network tasks for a Cocoa app,
including concurrent SSH servers and clients (or mail, or web, or FTP,
or DNS, or...):

Twisted Python:    http://twistedmatrix.com/
Python/Objective-C bridge:    http://pyobjc.sourceforge.net/

Write your async networking stuff in Python using Twisted (without
using threads), wrap it up in a plugin with PyObjC, and drop it in
your Cocoa app.

People manning the mailing lists for both projects are immensely
knowledgeable and helpful.

J.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Processing multiple objects w/NSTasks efficiently? (From: Michael Carter <email@hidden>)
 >Re: Processing multiple objects w/NSTasks efficiently? (From: Kaelin Colclasure <email@hidden>)

  • Prev by Date: Repost: NSBrowser with NSTreeController
  • Next by Date: "External" value setting fails when cursor is active in bound NSTextField
  • Previous by thread: Re: Processing multiple objects w/NSTasks efficiently?
  • Next by thread: Re: Processing multiple objects w/NSTasks efficiently?
  • Index(es):
    • Date
    • Thread