• 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: Removing object as observer in -willTurnIntoFault
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing object as observer in -willTurnIntoFault


  • Subject: Re: Removing object as observer in -willTurnIntoFault
  • From: Dado Colussi <email@hidden>
  • Date: Mon, 31 Mar 2014 04:29:51 -0500

On 31 March 2014 01:29, Jerry Krinock <email@hidden> wrote:

>
> Question: You do some initialization, adding observers for example, in
> -awakeFromInsert and -awakeFromFetch, and you tear down these
> initializations, removing observers for example, in -willTurnIntoFault.  Do
> you need to do anything in -awakeFromSnapshotEvents: ?
>


I don't start observers in -awakeFromInsert or -awakeFromFetch. I start
them on demand, and in -awakeFromSnapshotEvents: with
NSSnapshotEventUndoDeletion
(I ignore the other flags). I think the best place to start observers
depends on how the objects are used.

I stop some observers in -willTurnIntoFault, and others before that. It
depends on when I know that I no longer need the them.

/Dado
_______________________________________________

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


  • Follow-Ups:
    • Re: Removing object as observer in -willTurnIntoFault
      • From: Sean McBride <email@hidden>
    • Re: -awakeFromInsert can run > once. (Was: Removing object as observer…)
      • From: Jerry Krinock <email@hidden>
References: 
 >Removing object as observer in -willTurnIntoFault (From: Jerry Krinock <email@hidden>)
 >Re: Removing object as observer in -willTurnIntoFault (From: Dado Colussi <email@hidden>)
 >Re: Removing object as observer in -willTurnIntoFault (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Removing object as observer in -willTurnIntoFault
  • Next by Date: Re: Preparation for doing a bug report for CIPageCurlTransition
  • Previous by thread: Re: Removing object as observer in -willTurnIntoFault
  • Next by thread: Re: -awakeFromInsert can run > once. (Was: Removing object as observer…)
  • Index(es):
    • Date
    • Thread