Re: NSLog preventing a crash?
Re: NSLog preventing a crash?
- Subject: Re: NSLog preventing a crash?
- From: Alastair Houghton <email@hidden>
- Date: Tue, 24 Jul 2007 10:24:16 +0100
On 24 Jul 2007, at 09:45, Rob Chahin wrote:
The crash was caused by me, in my infinite wisdom, adding
'dictionaries' to my 'array' without sending -copy to them.
Presumably also without sending -retain? But if it's an NSArray, it
should already be retaining your NSDictionary objects.
Especially idiotic as I do the exact same thing properly elsewhere
in the code.
I guess NSLog sending -description must have fiddled with the
retain count just enough to stop the crash.
Not likely. It might have moved the crash to some other later part
of your code though, by adding things to an autorelease pool.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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