• 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
Core Data and retain count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data and retain count


  • Subject: Core Data and retain count
  • From: Kimo <email@hidden>
  • Date: Sun, 2 Mar 2008 12:32:43 -0800

I have a Core Data app that has several entities. One entity, Window, contains several properties such as openAtLaunch, windowName, and wController. The wController attributes are Transformable, Optional and Transient. The data are presented on a list, and when the user double-clicks a record, a window controller is allocated and set as the value for the property wController and then the window controller is released, giving it a retain count of 1.

However, and this is the weird part, whenever I change another property of the Window managed object, such as the openAtLaunch value, the window controller receives a 'retain'. Even if I just edit the windowName property, the wController value (the window controller) gets another retain. So by the time the user wants to delete a managed object from the list, the window controller could have a high value and is never released!

My question is, why would changing a property value cause another property to have its retain count increase?

Any insight would be appreciated.

Thanks.
_______________________________________________

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


  • Prev by Date: Subclassing NSOutlineView causes failure of window to become main or key
  • Next by Date: Re: Custom View drawn twice?
  • Previous by thread: Re: Subclassing NSOutlineView causes failure of window to become main or key
  • Next by thread: re: Core Data and retain count
  • Index(es):
    • Date
    • Thread