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 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"
timeZone:nil
locale:nil];

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

[pool drain];
return 0;
}
---

Thanx for any help.

LuckyLuc





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





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