Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler not finding "NSDebug.h" - WHY?



Try #import <Foundation/NSDebug.h>

You have to specify where the file is, in this case the Foundation framework.

JP



On 29 Dec 2004, at 11:50, John Draper wrote:



Hi,

I'm trying to find out which objects are getting de-allocated... I found out a
file called "NSDebug.h" which has access to routines and the NSDebug
class... and in particular, I was hoping I could use....


+ (void)showPools;
 // Displays to stderr the state of the current thread's
 // autorelease pool stack.

So I tried to add...

#import <NSDebug.h> to my source file, then add...

[NSDebug showPools]; To my code which is supposed to display the state of the stack to give me
SOME clue about which objects got de-allocated.


Why isn't this working?

What can I do to use this?

Do I really want to use this?

Is there any other way I can use the debugger to tell me what's going on?

Where can I find any docs that explain this?

John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

--
"NOTICE: This E-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution or copying of this communication is strictly prohibited, Please reply to the sender that you have received the message in error, then delete it. Thank you."




Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Compiler not finding "NSDebug.h" - WHY? (From: John Draper <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.