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: Scott Stevenson <email@hidden>
- Date: Mon, 15 Nov 2004 20:55:07 -0800
On Nov 15, 2004, at 8:23 PM, John Kundert-Gibbs wrote:
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
Can you implement a callback in the C code at intervals? That would
allow you to bubble things up to the surface with minimal work and no
polling.
When you get a callback, increment the progress bar.
- Scott
--
http://treehouseideas.com/
http://theobroma.treehouseideas.com/ [blog]
_______________________________________________
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