Ask a Question related to Mac Programming, Design and Development.
-
Dr. Michael M. Cohen #1
OSX Carbon Console???
How can I printf() or fprintf(stderr,) using the project builder
for OSX Carbon? The debug thingy has a Standard I/O tab, but
receives nothing... Please CC me any info.
Thanks, MMCohen
--================================================== ==================
= Dr. Michael M. Cohen [email]mmcohen@ranx.ucsc.edu[/email] =
= Program in Experimental Psychology =
= 429G Social Sciences II 831-459-2655 VOICE =
= University of California - Santa Cruz 831-459-2700 MESSAGES =
= Santa Cruz, CA 95064 USA 831-459-3519 FAX =
= WWW URL: [url]http://mambo.ucsc.edu/psl/mmc.html[/url] =
================================================== ====================
Dr. Michael M. Cohen Guest
-
Carbon Bundle projectors??
I found the page on Macromedia.com explaining how to do it, and it works in OS X but i can't get it to open in OS9... are there anything i should do?... -
KeyFilters (Carbon)
I have an EditUnitcodeTextControl and what I want is for the keystrokes to be converted to uppercase (ie when the user types 'a' in the control, it... -
Using Image Well with Carbon API
On Sun, 10 Aug 2003, yelko wrote: The obvious way would be to use an image well control, if not there's always DrawThemeGenericWell (from... -
Resource files and Carbon - PLEASE HELP!
I've been messing with this for hours, and am at my wit's end. If anyone has an ideas, please help! I find that when using FSpOpenResFile as a... -
Carbon Window Help
Michael Austin wrote: My Quickdraw is a little rusty, but shouldn't you be setting the device too? You can use SetGWorld. -Peter -
Simon Slavin #2
Re: OSX Carbon Console???
In article <3F626831.3ECB67F8@ranx.ucsc.edu>,
"Dr. Michael M. Cohen" <mmcohen@ranx.ucsc.edu> wrote:
NSLog() is the standard debugging tool. You can NSLog() any>How can I printf() or fprintf(stderr,) using the project builder
>for OSX Carbon? The debug thingy has a Standard I/O tab, but
>receives nothing...
NSString or anything that coerces into an NSString so.
NSLog(@"got to here in the program")
works.
No. Don't post to groups you don't read. And please don't>Please CC me any info.
multipost to .misc: that group is for things that don't fit
in the other groups of that hierarchy.
Simon Slavin Guest
-
Peter Ammon #3
Re: OSX Carbon Console???
Dr. Michael M. Cohen wrote:
There is a bug in the standard output view for Project Builder that> How can I printf() or fprintf(stderr,) using the project builder
> for OSX Carbon? The debug thingy has a Standard I/O tab, but
> receives nothing... Please CC me any info.
> Thanks, MMCohen
sometimes causes it to not flush when a newline is output. Use
fflush(stdout); or fflush(NULL); explicitly and you should see your
printf() output.
-Peter
Peter Ammon Guest
-
Tom Harrington #4
Re: OSX Carbon Console???
In article <BB8BFFC69668670DCD@10.0.1.2>,
[email]slavins@hearsay.demon.co.uk[/email]@localhost (Simon Slavin) wrote:
Although people who say they're using Carbon may be reluctant to link in> In article <3F626831.3ECB67F8@ranx.ucsc.edu>,
> "Dr. Michael M. Cohen" <mmcohen@ranx.ucsc.edu> wrote:
>>> >How can I printf() or fprintf(stderr,) using the project builder
> >for OSX Carbon? The debug thingy has a Standard I/O tab, but
> >receives nothing...
> NSLog() is the standard debugging tool. You can NSLog() any
> NSString or anything that coerces into an NSString so.
>
> NSLog(@"got to here in the program")
>
> works.
Cocoa just to get NSLog, eh? Especially when printf's already available
by default.
I posted a response earlier that doesn't seem to have shown up. The key
is going to be calling fflush() on the relevant output buffer-- i.e.
"fflush(stderr)" or "fflush(stdout)".
--
Tom "Tom" Harrington
Macaroni, Automated System Maintenance for Mac OS X.
Version 1.4: Best cleanup yet, gets files other tools miss.
See [url]http://www.atomicbird.com/[/url]
Tom Harrington Guest



Reply With Quote

