• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: More memory management questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: How do I cancel a NSURL loadResourceDataNotifyingClient:usingCache: ?
  • Next by Date: The Project From A Faraway Land
  • Previous by thread: Re: More memory management questions
  • Next by thread: Re: More memory management questions
  • Index(es):
    • Date
    • Thread