Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Multiple NSNotification, Changed only one object. In Notification getting notification of relationships.

Hi,


I have Entities like 'Alert' which has relationship to 'Company' and 'Company' has relationship to 'User'.

When i am saving something in Alert. In my observer of NsNotificationCenter, i am getting notification for 'Company', 'User (multipler users)' and Alert.

I am not able to figure out why i am getting Notifications of 'Company' and 'User'.

For example : I have Company name - XYZ and it has 7 Users - 'A to G' and i created Alert on 'A' then after changing in Alert. i am getting notification of 7 users, 1 Company and 1 Alert.

I dont know why i am getting Notification of Users and Company.


My Objects Hierarchy is :

Alert has relationship to Company.

User has relationships to Company.


Please help..


Thanks,

Amit

Windows 7, Webobject

Posted on Dec 12, 2013 3:44 AM

Reply
3 replies

Dec 17, 2013 4:50 AM in response to amit.thakkar

It is a valid question, but maybe nobody watching this forum has a good answer 😐

I suspect that it has something to do with dependency management in the EOF layer.


What notifications exactly do you you get

(ObjectsChangedInEditingContextNotification, EditingContextDidSaveChangesNotification, ...)?


You may also try your question on Apple's webobjects-dev mailing list.



Ralf

Dec 17, 2013 11:01 AM in response to amit.thakkar

Amit,


First you should move this question to the webobjects mailing list:


WebObjects Development <webobjects-dev@lists.apple.com>


https://lists.apple.com/mailman/options/webobjects-dev/


So each users can have many companies? Each Company has one Alert? I don't understand the relationship(s)..


Alert => Company

User <=>> Company


it's not really clear what you want. (at least not to me).

Multiple NSNotification, Changed only one object. In Notification getting notification of relationships.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.