• 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: Connecting a progress bar to standard C code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Connecting a progress bar to standard C code? (From: John Kundert-Gibbs <email@hidden>)

  • Prev by Date: Control an applications file system calls
  • Next by Date: Re: [Proposal] On-the-fly NIB localization
  • Previous by thread: Re: Connecting a progress bar to standard C code?
  • Next by thread: Re: Connecting a progress bar to standard C code?
  • Index(es):
    • Date
    • Thread