• 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: Exception raised during posting of notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Exception raised during posting of notification
      • From: Sherm Pendley <email@hidden>
References: 
 >Exception raised during posting of notification (From: Andrew Shamel <email@hidden>)
 >Re: Exception raised during posting of notification (From: j o a r <email@hidden>)
 >Re: Exception raised during posting of notification (From: Ondra Cada <email@hidden>)
 >Re: Exception raised during posting of notification (From: j o a r <email@hidden>)

  • Prev by Date: Re: Tiger Decoding problem
  • Next by Date: Re: NSArrayController question...
  • Previous by thread: Re: Exception raised during posting of notification
  • Next by thread: Re: Exception raised during posting of notification
  • Index(es):
    • Date
    • Thread