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 protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
