Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting eo changes when they happen



Hi Pierre,


Florijan,

the code I am proposing builds upon the ObjectsChangedInEditingContextNotification. This notification is posted as changes happen. It is not delayed until saveChanges(). This is actually used in the Java client to update the UI as changes happen.

I find this very strange, since I have tested that option. As a test I have added an omniscient observer to the notification center, and logged all notifications, printing out their names. ObjectsChangedInEditingContextNotification did *not* get posted on object changes, but it did get posted when I called saveChanges() on my editing context. If I recall correctly, some NSUndoManager notifications got posted at object change time. The test code is pretty simple, so I can't imagine I screwed it up. I am a bit stupefied by this... I can not find an EOEditingContext property which might have something to do with this. Am I missing something???


Florijan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >Detecting eo changes when they happen (From: Florijan Stamenkovic <email@hidden>)
 >Re: Detecting eo changes when they happen (From: Pierre Bernard <email@hidden>)
 >Re: Detecting eo changes when they happen (From: Florijan Stamenkovic <email@hidden>)
 >Re: Detecting eo changes when they happen (From: Pierre Bernard <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.