Re: NSLog preventing a crash?
Re: NSLog preventing a crash?
- Subject: Re: NSLog preventing a crash?
- From: John Stiles <email@hidden>
- Date: Tue, 24 Jul 2007 10:24:37 -0700
On Jul 24, 2007, at 9:22 AM, Shawn Erickson wrote:
On 7/24/07, Rob Chahin <email@hidden> wrote:
For the record, the crash is no longer an issue now that I send -
copy. It's entirely possible that I'm sending extra retains to
objects, as I tend to write functionality and then worry about retain
counts. I have memory leaks all over the place at the moment.
Talking from a long time working with the Cocoa framework... I
strongly recommend you get the memory management "contract" in your
head and apply as you code... it shouldn't be some thing you consider
later.
Also NEVER worry about retain counts... worry about the memory
contract and honoring it.
Or, you can decide to require Leopard, and forget retain/release
entirely and rely on garbage collection.
If you are just doing hobbyist programming and don't want to learn
the memory management rules, it's a quick-fix that only costs a
little performance.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden