Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mac > BOOK: Beginning Mac OS X Programming
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 24th, 2010, 05:43 AM
Registered User
Join Date: Jun 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 3 - p.88 - Online documentation

This is about "Beginning Mac OS X SNOW LEOPARD Programming"...

At Step 12 I get
'Debugging of "Greetings" ended normally. Succeeded'
instead of
'GDB: Program received signal: "EXC_BAD_ACCESS".'

So it seems that I have no errors in the code but therefor I can't continue this exercise. Can somebody tell me what I should change to my code in Greetings.m:

#import <Foundation/Foundation.h>

int main (int argc, const char *argv[])
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

NSString *user = NSFullUserName();
NSString *time = [[NSDate date] descriptionWithCalendarFormat:@"%H:%M:%S %Z"

printf("Hello %s,\n", [user UTF8String]);
printf("It is now %s.\n", [time UTF8String]);

[pool drain];
return 0;

Thanx for any help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Files in Online Diary (Chapter One) flashmanTom BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 July 10th, 2009 06:36 PM
Page 88 - Practice what you preach. Patrick Cambria BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 13 February 8th, 2009 04:31 PM
Online Diary - Profiles (Chapter 1) alineurope BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 January 17th, 2007 06:05 PM
Main.java:88: 'class' or 'interface' expected samnachilomo Java Basics 1 December 13th, 2006 09:07 AM

All times are GMT -4. The time now is 02:34 PM.

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