• 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 simple questions regarding Core-Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two simple questions regarding Core-Data


  • Subject: Re: Two simple questions regarding Core-Data
  • From: Steve Israelson <email@hidden>
  • Date: Fri, 4 May 2007 15:33:26 -0700

Maybe the array controller sorted the array and thus had to access each object causing it to fault?

On 4-May-07, at 2:48 PM, Robert Walker wrote:

Marcus,

Thanks for check into this for me. I do realize the OP's question. My previous post was for my own desire to understand the internal mechanics of Core Data. I'm really just looking to crack open that "black box" a bit to rise to the next level of understanding.

It is very interesting that it made a difference fetching the objects in code with a fetch request, as opposed to pulling the selection out of the NSArrayController. It would be interesting to know for sure why that is. Now that I have your example I'll do some more experimenting on my own. I quite enjoy puzzles like these.

On May 4, 2007, at 5:08 PM, Marcus S. Zarra wrote:

Interesting that your example causes the faults to fire.  By removing
the bindings from the equation I was not able to duplicate your
results.

NOTE: the OP was looking for a way to perform a "select count(*) from
xxx" which the above code does perform without a performance hit of
firing the faults.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • NSTableView & drop on cell
      • From: arri <email@hidden>
    • NSTableView: drop on cell
      • From: arri <email@hidden>
References: 
 >Two simple questions regarding Core-Data (From: "Hell's KItchen Hell's KItchen" <email@hidden>)
 >Re: Two simple questions regarding Core-Data (From: "Marcus S. Zarra" <email@hidden>)
 >Re: Two simple questions regarding Core-Data (From: Robert Walker <email@hidden>)
 >Re: Two simple questions regarding Core-Data (From: "Marcus S. Zarra" <email@hidden>)
 >Re: Two simple questions regarding Core-Data (From: Robert Walker <email@hidden>)
 >Re: Two simple questions regarding Core-Data (From: "Marcus S. Zarra" <email@hidden>)
 >Re: Two simple questions regarding Core-Data (From: Robert Walker <email@hidden>)

  • Prev by Date: Re: post hidden mouse events
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: Two simple questions regarding Core-Data
  • Next by thread: NSTableView: drop on cell
  • Index(es):
    • Date
    • Thread