Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 29, 2009, 04:45 AM   #1
John Baughman
macrumors member
 
Join Date: Oct 2003
outError problems (Hillagas challenge)

I'm working the challenge in chapter 18 of creating a document based application to draw ovals. I have a working solution, but only if I ignore the outError in the - (NSData *)dataOfType... and the - (BOOL)readFromData... methods in MyDocument.m as outError is never NULL.

Can anyone explain why this is? I read elsewhere that often this is the result of a bad pointer someplace. If so, or for whatever reason, how do I debug it to find what is offending.

Thanks
John
John Baughman is offline   0 Reply With Quote
Old Jul 29, 2009, 02:17 PM   #2
m3kilpat
macrumors regular
 
Join Date: Jul 2009
What language are you using? GDB will help if you're using C/C++.
m3kilpat is offline   0 Reply With Quote
Old Jul 29, 2009, 07:24 PM   #3
John Baughman
Thread Starter
macrumors member
 
Join Date: Oct 2003
I am using Objective-C in Xcode
John Baughman is offline   0 Reply With Quote
Old Jul 30, 2009, 07:20 AM   #4
m3kilpat
macrumors regular
 
Join Date: Jul 2009
Quote:
Originally Posted by John Baughman View Post
I am using Objective-C in Xcode
You can use GDB for that too. If "how can I debug?" is your main question you should be set now. Just search gdb in google. It's not too bad to learn and will be very handy in the future.
m3kilpat is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
All iPads: The iPad challenge! [CHALLENGE OVER] TechGod iPad 56 Apr 5, 2014 04:00 AM
OS-neutral: Chuck's Challenge 3D: Chip's Challenge Reborn N19h7m4r3 Mac and PC Games 1 Mar 2, 2014 02:18 PM
The iMac G3 Challenge Lil Chillbil PowerPC Macs 47 Dec 28, 2012 12:54 PM
Geo Challenge najklas iPhone and iPod touch Apps 0 Sep 13, 2012 08:44 AM

Forum Jump

All times are GMT -5. The time now is 06:52 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC