• 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: [Solved] IPhone- Datasensitive bug from CoreData...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Solved] IPhone- Datasensitive bug from CoreData...


  • Subject: Re: [Solved] IPhone- Datasensitive bug from CoreData...
  • From: Brian Bruinewoud <email@hidden>
  • Date: Sat, 26 Dec 2009 14:10:28 +1100

Ironically, it wasn't that I was overreleasing something but rather that I was under releasing.
Specifically, the fetchedResultsController's delegate was a view controller. The view controller owned the fetchedResultsController. Presumably a fairly common pattern.
However, the view controller's dealloc didn't release the fetchedResultsController, so when the data changed, it was still observing it and tried to the tell its delegate.

I'm a little surprised that the view controller was dealloced as it was still on the navigationController stack (one below the current view). Reading about the navigation controller now...

On 26/12/2009, at 01:29 , Kyle Sluder wrote:

> On Dec 25, 2009, at 12:48 AM, Brian Bruinewoud <email@hidden> wrote:
>
>> *** -[NSCFType controllerDidChangeContent:]: unrecognized selector sent to instance 0x3a11d70
>
> Usually this is a sign of a memory management error, specifically an overrelease. Run with zombies enabled to find it.
>
> --Kyle Sluder

_______________________________________________

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

References: 
 >IPhone- Datasensitive bug from CoreData... (From: Brian Bruinewoud <email@hidden>)
 >Re: IPhone- Datasensitive bug from CoreData... (From: Brian Bruinewoud <email@hidden>)
 >Re: IPhone- Datasensitive bug from CoreData... (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • Next by Date: NSArray as a class variable
  • Previous by thread: Re: IPhone- Datasensitive bug from CoreData...
  • Next by thread: Re: IPhone- Datasensitive bug from CoreData...
  • Index(es):
    • Date
    • Thread