Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mac > BOOK: Beginning Mac OS X Programming
|
BOOK: Beginning Mac OS X Programming
This is the forum to discuss the Wrox book Beginning Mac OS X Programming by Michael Trent, Drew McCormack; ISBN: 9780764573996
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Mac OS X Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2005, 09:20 AM
Registered User
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default No updates to the Log window during scanf?

I'm going through the C examples in the book (I don't have it in front of me so I can't give exact page numbers), but there are a few examples where "scanf" is used to get text input.

When I compile and run these examples, the printf text doesn't get printed in the Log window until the final scanf is finished; this means that if I have three printf prompts and three scanf statements, I don't see any of the printf fonts until I've entered info for the three scanf statements...then, suddenly, all the printf's appear in the Log window. Which makes scanf totally useless in this situation...you can't see what you're responding to until all of the scanf's are finished with.

I'm using Panther, so I don't have Xcode 2.1. Could this be a difference in the way the Log window works in 2.1, or a difference in the compiler between Panther and Tiger? This is relatively minor, as I doubt I'll ever use scanf anyway...but it does seem weird.

Any info is much appreciated!

Muffy
www.dangermuff.com

 
Old September 2nd, 2005, 03:31 AM
Registered User
 
Join Date: Sep 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Drew McCormack
Default

Hello Muffy,
I'm not sure why this is not working for you. I just tried the 'pointy' example on Tiger with Xcode 2.1, and it worked fine.
I can only think it must have something to do with your using Panther, though the examples were tested on Panther too.
You could try turning off ZeroLink, if it is on. Sometimes ZeroLink can cause some strange behavior.
Sorry I can't be more help.
Regards,
Drew

----------------------------
Drew McCormack
www.maniacalextent.com
 
Old September 2nd, 2005, 07:56 AM
Registered User
 
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Drew! I'll try turning off Zerolink. It's definitely the "Pointy" example that isn't working for me, though scanf in general does this whenever I try to use it.

Muffy
[PS: I have no idea how the word "fonts" ended up in my original message, I must have been daydreaming or something]






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to log to server's event log LenexaKS Access VBA 4 March 11th, 2008 12:49 PM
Can't get Log to write the Log.txt file jnbutler BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 3 July 31st, 2007 04:04 AM
Updates? GeekyMonkey BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 12 May 24th, 2006 12:11 PM
AppException Class -Log Error to Event Log bekim BOOK: ASP.NET Website Programming Problem-Design-Solution 7 December 7th, 2004 01:01 PM
Transactional UPDATEs djm2cmu BOOK: ASP.NET Website Programming Problem-Design-Solution 0 January 20th, 2004 11:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.