Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
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

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 On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
HELP! Sync problem!? Kman07 iPod touch Hacks 0 Nov 11, 2010 09:56 PM
A Font Problem RobertsonDesign Mac Basics and Help 3 Nov 7, 2010 06:30 PM
Macbook pro 15" i7 problems, need some help. filfortugno MacBook Pro 1 Nov 7, 2010 05:44 PM
Major AppleTV (2010) problems all of a sudden. iMJustAGuy Apple TV and Home Theater 6 Nov 6, 2010 08:57 AM
2007 Macbook wifi connection problems jwbradle MacBook 2 Nov 3, 2010 01:35 PM


All times are GMT -5. The time now is 11:45 AM.

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

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