Re: More memory management questions
Re: More memory management questions
- Subject: Re: More memory management questions
- From: David Newberry <email@hidden>
- Date: Sat, 2 Mar 2002 14:23:31 -0800
All,
Again, I'd like to thank you all for responding. I now feel pretty
confident with memory management. Two last questions (yeah right ;).
First, is there any requirement for objects which you pass? As in...
[MyNSTextView setString:myString];
Can I safely assume that after I pass it, I can do whatever I want with
myString after passing it?
And on debugging, Ondra Cada was kind enough to post this reply:
DN> Lastly: I'm experimenting with getting my memory management right,
and am
DN> (predictably -- I am a newbie to Cocoa) getting exceptions in the
DN> NSAutoreleasePool method. Is there any way for me to know what object
it
DN> is that causes the exception?
Not easily. The best way IMHO is to use gdb and put a breakpoint to
-[NSException raise].
I've done some simple debugging, setting breakpoints to look at local
variables and such, but I've never heard of setting a breakpoint "to"
something... what exactly does this mean?
Thanks,
-David Newberry
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.