• 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
Standard Input in Project Builder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Standard Input in Project Builder?


  • Subject: Standard Input in Project Builder?
  • From: Matt Ridley <email@hidden>
  • Date: Mon, 30 Apr 2001 23:38:02 +0100

Hi all,

This isn't strictly a Cocoa question, but it relates to Project Builder. Apologies if this question is inappropriate here.

I haven't programmed in C for a few years, and have been re-acquainting myself with it in preparation for getting into Cocoa. For simplicity's sake, I've been using the exercises in K&R (2nd edition). These are just plain C programs, #including stdio.h.

Currently, I'm writing the C programs in Project Builder (based on the Standard Tool template), then going to the shell to cc them and run them via ./a.out. That all works quite well.

I notice that, if I instead compile and run within Project Builder itself, the "Run" pane at the top-right of the project window serves as the Standard Output. My question is: can it also serve as the Standard Input, thus saving me having to use Terminal? I can't seem to get it to accept input there (which I'm reading with basic functions like getchar()).

Any thoughts would be much appreciated. Again, sorry if this isn't the right forum for this.


Best,
-Matt

--
Matt Ridley
<http://www.mattridley.com/>


  • Follow-Ups:
    • Re: Standard Input in Project Builder?
      • From: Matthew Formica <email@hidden>
  • Prev by Date: Re: NSToolbar experience?
  • Next by Date: Re: Standard Input in Project Builder?
  • Previous by thread: Re: capture NSOpenGL (Cocoa) onto a QuickTime frame
  • Next by thread: Re: Standard Input in Project Builder?
  • Index(es):
    • Date
    • Thread