• 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: bindings via file's owner don't update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bindings via file's owner don't update


  • Subject: Re: bindings via file's owner don't update
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 29 Nov 2010 22:10:20 -0800

On Nov 29, 2010, at 21:36, Mikkel Eide Eriksen wrote:

> I'm updating the objectCount property during readFromURL:ofType:error: - could that be it?

No, that's a suitable method, but the question is whether it's running in the main thread or if the document initialization process got switched to a background thread for some reason. (That would only happen if you wrote code to make it happen.)

Previously, you logged 'addObserver:...' to establish that the observer of document.objectCount got registered. You could also trying to see whether "objectCount" notifications are being issued at all. Have some object (e.g. the loading window controller itself) manually observe the property and see whether the observer gets told when the property changes.

Another possibility is that you've (somehow) caused two document objects to be created. That sort of thing can happen when you [also] instantiate an object in a nib file that's normally created in code. Or it could be 2 window controllers, or 2 windows.


_______________________________________________

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: bindings via file's owner don't update (From: Mikkel Eide Eriksen <email@hidden>)

  • Prev by Date: Re: Text colour button problem in Font Panel
  • Next by Date: Reducer Sample Code
  • Previous by thread: Re: bindings via file's owner don't update
  • Next by thread: Re: bindings via file's owner don't update
  • Index(es):
    • Date
    • Thread