Re: NSArray problems
Re: NSArray problems
- Subject: Re: NSArray problems
- From: Chris Suter <email@hidden>
- Date: Mon, 28 Jul 2008 13:10:48 +1000
On 28/07/2008, at 1:06 PM, Daniel Richman wrote:
I'd say you've either got a memory management issue, e.g. you're
forgetting to retain numbers (are you using garbage collection?),
or the debugger is getting confused and printing something else.
That was it! I had forgotten to retain numbers. What confused me was
that I was getting those bogus entries like NSRectSet. But the
"target does not respond to this message selector" should have
tipped me off that I was sending a message to nil. Thanks so much.
You weren't sending a message to nil. Messages to nil do nothing.
What probably happened is that the memory was deallocated and an
NSRectSet was allocated at the exact same location. You won't see this
problem with Garbage Collection so use that if you can. Otherwise you
can debug these kinds of problems using zombies.
-- Chris
_______________________________________________
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