Hi, I am new to cocoa and hence i have this basic question for which i could not find a good answer after researching on this topic.
Let us say that there are two objects A and B. 1) Object A produces some data 2) Object B consumes the data produced by object A When object B sends a message to object A for fetching the data, the data is not available immediately. When the data arrives later, it needs to notify object B. For example, object A fetches data from some web service and Object B is some sort of a "controller". How does one handle this in Cocoa ? - I can include the functionality of Object A within Object B itself and hence there is no issue. But i guess this is prohibited as per the MVC design. - Object A can retain object B and later send the message back when data is available. But then this creates a dependency of object B knowing object A and object A knowing object B. Is this okay ? - Any other way ? Any help on this would be appreciated. Thanks mohan _______________________________________________ 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]
