• 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: observeValueForKeyPath:... called multiple times on exit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: observeValueForKeyPath:... called multiple times on exit


  • Subject: Re: observeValueForKeyPath:... called multiple times on exit
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Tue, 8 Apr 2008 15:52:36 -0700

I put some code into my observe method to get the arrangedObjects array out of the NSArrayController, and then I print that array to the screen. On exit of the application, the observe method gets called around 7 times, and there doesn't seem to be a difference in the array contents between each successive call. As far as I know I'm not adding or removing objects from Core Data store during this time, which is what the NSArrayController is bound to. I know this because when the application is relaunched, the contents of the store are what they were before I quit.

I don't know what other conditions I should be looking out for other than a change to that arrangedObjects array.

Thanks for the reply,

Mike

On Apr 8, 2008, at 2:01 PM, Keary Suska wrote:

Why do you think it shouldn't be? Have you put a breakpoint in the observe
method and looked at what conditions are triggering the message, and
determined that they shouldn't be happening? That should answer your
question.


Best,


Keary Suska
_______________________________________________

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: observeValueForKeyPath:... called multiple times on exit (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: PDFView and Core Data undos
  • Next by Date: Re: Open-source NSToolbar?
  • Previous by thread: Re: observeValueForKeyPath:... called multiple times on exit
  • Next by thread: Returning a value from a function
  • Index(es):
    • Date
    • Thread