On Tue, Jul 14, 2009 at 2:42 PM, Adam Fedor
<address@hidden> wrote:
There must be something wrong somewhere else. If dealloc is being called more than once, then somewhere there are two many 'releases' for the number of 'retains' you have.
In fact, if the NSSound is stored in nameDict, then dealloc should have never been called in the first place, as nameDict implicitly retains the NSSound (if that is the only place that the NSSound is removed from nameDict). So that means you have at least two too many releases somewhere else.