• 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: awakeFromFetch behaviour change in 10.12?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: awakeFromFetch behaviour change in 10.12?


  • Subject: Re: awakeFromFetch behaviour change in 10.12?
  • From: Sean McBride <email@hidden>
  • Date: Mon, 25 Jul 2016 21:09:09 -0400
  • Organization: Rogue Research Inc.

On Mon, 25 Jul 2016 14:12:42 -0500, Kyle Sluder said:

>On Mon, Jul 25, 2016, at 09:14 AM, Sean McBride wrote:
>> Hi all,
>>
>> I'm observing that in 10.12 my awakeFromFetch methods are being called
>> more than in 10.11 and earlier.  Specifically, it's called more than once
>> for an object that's already been fetched previously.
>>
>> Perhaps I have misunderstood the method's semantics all these years, but
>> I expected that awakeFromFetch would only be called once, when an object
>> is first awaken from the persistent store.
>>
>> Now I'm seeing that if I execute a fetch request where
>> returnsObjectsAsFaults=YES awakeFromFetch will be invoked on all the
>> resulting objects, even if it'd been invoked before.
>>
>> Does that seem correct to you?
>
>This does not sound like expected behavior. Could you please file a bug
>report at https://bugreport.apple.com and attach a sample project if at
>all possible?

Kyle,

Thanks for agreeing that it seems wrong.  I filed <rdar://27526497> but haven't reduced to a test app yet.

Also, for the archives: I got something backwards in my post: the problem happens if I fetch with returnsObjectsAsFaults=NO (not YES).

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________

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: 
 >awakeFromFetch behaviour change in 10.12? (From: Sean McBride <email@hidden>)
 >Re: awakeFromFetch behaviour change in 10.12? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: NSFileHandle and thread safety
  • Next by Date: Codesign assumes folder structure, fails.
  • Previous by thread: Re: awakeFromFetch behaviour change in 10.12?
  • Next by thread: NSFileHandle and thread safety
  • Index(es):
    • Date
    • Thread