Connecting a progress bar to standard C code?
Connecting a progress bar to standard C code?
- Subject: Connecting a progress bar to standard C code?
- From: John Kundert-Gibbs <email@hidden>
- Date: Mon, 15 Nov 2004 23:23:43 -0500
Hi, all,
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.
Here's the problem: the code takes a very long time (up to more than a
day) to run, depending on what I ask it to do. I currently have a print
statement that updates a "percent done" status to the stdout, but
that's not very "Mac" like, so I implemented a progress bar when the
submit button is pressed. My problem is that, once the submit button is
pressed, I dive into straight C code. While I've created a global
variable that I can query from anywhere (percentDone), I have no idea
how (or if) I can force my progress bar to query this variable from
time to time and update itself. I made an abortive attempt to redo my
main loop code in Objective-C, but I just don't know it well enough yet
to make that work.
Does anyone happen to know if there's a way to interface my progress
bar with my standard C code? And, if there is an answer for this, is
there also a way to send a "kill" command from my progress window if I
press a "cancel" button?
Thanks much for any help on this!
John
John Kundert-Gibbs, Director
Digital Production Arts
Clemson University
129 McAdams Hall
Clemson, SC 29634
email@hidden
"Cry, the beloved country"
_______________________________________________
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