Re: Connecting a progress bar to standard C code?
Re: Connecting a progress bar to standard C code?
- Subject: Re: Connecting a progress bar to standard C code?
- From: Sherm Pendley <email@hidden>
- Date: Tue, 16 Nov 2004 02:59:58 -0500
On Nov 15, 2004, at 11:23 PM, John Kundert-Gibbs wrote:
Sorry to bother you if this has already been answered, but I'm having
difficulty getting a progress bar to work in some code that started
life as "basic" C code that I've put an Objective-C wrapper around for
the GUI interface stuff.
If your C tool is already running as a command-line tool, there's
little need to change it at all.
You can write a GUI wrapper app that launches the C tool using NSTask.
To read from its stdout you have your choice - you can either poll for
available data, or receive events when data is ready. NSTask also has
methods to kill the child process - or more accurately, to send it
various signals - that you can use if you want to provide a cancel
button.
sherm--
_______________________________________________
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