Re: Cocoa Programming iPing exercise

2008-10-02 Thread Joe Keenan
On Oct 2, 2008, at 10:01 AM, Sherm Pendley wrote: On Thu, Oct 2, 2008 at 9:20 AM, Joe Keenan <[EMAIL PROTECTED]> wrote: On Oct 1, 2008, at 1:25 PM, Shawn Protsman wrote: NSArray *args = [NSArray arrayWithObject:[hostField stringValue]]; You forgot the nil argument at the

Re: Cocoa Programming iPing exercise

2008-10-02 Thread Joe Keenan
On Oct 1, 2008, at 1:25 PM, Shawn Protsman wrote: Here is the project code for the startStopPing method (the relevant part that I think I should change) of iPing: task = [[NSTask alloc] init]; [task setLaunchPath:@"/sbin/ping"]; NSArray *args = [NSArray arrayWithObj

Re: design pattern for data acquisition in background thread?

2008-09-27 Thread Joe Keenan
On Sep 27, 2008, at 4:25 PM, Chris Hanson wrote: On Sep 26, 2008, at 3:37 PM, Joe Keenan wrote: Right now, the app controller object sends a message to the device controller, requesting the value of a specified variable. The device controller does the telnet command to get it, returns

design pattern for data acquisition in background thread?

2008-09-27 Thread Joe Keenan
I have an application that acts as a GUI front end for a network device. The device has a telnet server, so I'm using a ASyncSocket to open a connection and talk telnet commands to it. That's all working fine. The problem is that the UI is totally unresponsive while it's doing an update,