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.

This is also posted when changes from other editing contexts are merged in.

Pierre


On 11 Oct 2006, at 14:34, Florijan Stamenkovic wrote:

Hi Pierre,


Thanks for pointing the code, it is however not what I need. It was my first thought to listen for EditingContext notifications, but they only are posted on some EditingContext actions, like saveChanges(), and not when an edit on an EO happens in the client editing context. I need to be notified as soon as for example:

person.setName("Dodo");

is called, and the change to person done, even though it is not yet committed to the parent object store.

Best regards,
Flor

Hi!

Using the ChangeNotificationCenter from http://www.bernard-web.com/ pierre/webobjects/code.html you may be notified that an object has changed. It won't however tell you which attribute was affected.


- - -
Houdah Software s. à r. l.
http://www.houdah.com
- Quality Mac OS X software
- Premium WebObjects consulting




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to