• 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: Two kinds of NSManagedObject fault?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two kinds of NSManagedObject fault?


  • Subject: Re: Two kinds of NSManagedObject fault?
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 08 Mar 2014 12:16:09 -0800

On 2014 Mar 08, at 11:45, Frédéric Testuz <email@hidden> wrote:

> I suspect that in your test case, the number are tagged pointers, then they are never deallocated as they are not allocated in first place. And are you sure that the string tested are not static strings (NSCFConstantString) ? These ones are also never deallocated.

Good thinking, Frédéric!  Yes, I remember reading in a Mike Ash Friday Q&A that recent versions of OS X use tagged pointers for NSNumbers, and the strings which I tested are indeed constant strings.  What you say seems quite likely.

I still don’t understand how a managed object whose retain count is 14 could have deallocated attributes, though.  Need to read some more.


_______________________________________________

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: 
 >Re: Two kinds of NSManagedObject fault? (From: Sixten Otto <email@hidden>)
 >Re: Two kinds of NSManagedObject fault? (From: Sixten Otto <email@hidden>)
 >Re: Two kinds of NSManagedObject fault? (From: Jerry Krinock <email@hidden>)
 >Re: Two kinds of NSManagedObject fault? (From: Frédéric Testuz <email@hidden>)

  • Prev by Date: Re: Two kinds of NSManagedObject fault?
  • Next by Date: Best way to make Finder/Mail style toolbars?
  • Previous by thread: Re: Two kinds of NSManagedObject fault?
  • Next by thread: NSTask for external tool - keep active/prevent relaunch?
  • Index(es):
    • Date
    • Thread