On Mar 10, 2009, at 10:30 AM, Simon McLean wrote:

HI All -

I've got a method that creates an EO then posts a notification to NSNotificationCentre to tell it's just created the object. A listener then receives the notification and does a bunch of stuff on the EO.

However, the method that creates the EO and fires the notification appears to be waiting for the listener to do it's job before it returns.

Is that normal behavior ?

Yes, that is how it works.


The java docs don't talk about the sequence of events, but I presumed that the notifier would just makes it's notification then get on with whatever it has to do next and not care about what the listeners are doing, or how long it takes them to do it.

Do i just need to stick the listeners job into a thread to get it to run in the background ?


Yes.  Or use some other notification system.


Chuck

--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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