Re: Exception raised during posting of notification
Re: Exception raised during posting of notification
- Subject: Re: Exception raised during posting of notification
- From: Andrew Shamel <email@hidden>
- Date: Mon, 30 May 2005 21:24:17 -0400
On May 30, 2005, at 9:16 AM, j o a r wrote:
On 30 maj 2005, at 15.12, Andrew Shamel wrote:
The strange thing is, though, I'm trying to send notifications to
objects, and those notifications aren't getting there, but are
instead going to random Arrays. — The intended objects haven't
been dealloced yet.
I would guess that they have in fact been deallocated. The most
common reason why you get that type of error message (random object
doesn't respond to selector) is that you have made a memory
management mistake, and that the target object is indeed deallocated.
Set a breakpoint, or a log statement, in the dealloc method of your
objects to find out.
j o a r
There is indeed a problem with dealloc-ing. However, the cause
remains unclear to me. The object in question is being added to an
NSMutableDictionary before i release it. The documentation says that
objects receive a retain message when added to an
NSMutableDictionary, but it does not seem to be happening. Any
ideas? Am I missing something basic here?
Thanks so much,
Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden