Re: is NSNotificationCenter thread safe?
Re: is NSNotificationCenter thread safe?
- Subject: Re: is NSNotificationCenter thread safe?
- From: Florijan Stamenkovic <email@hidden>
- Date: Wed, 04 Jun 2008 16:56:22 -0400
On Jun 04, 2008, at 16:42, Chuck Hill wrote:
That should be obvious, but I have managed to overlook some of the
implications from time to time.
I've always thought NSNotification center is a rather simple,
straight-forward player.
It is, but a threaded, concurrent environment can hold many
interesting surprises ("oh right, this page is not in an R-R loop
when that notification arrives"). :-)
Yeah, the high decoupling it provides can be a factor of confusion...
I've read somewhere once a good comment on the notification concept,
saying basically that one should never use it if there is another
way. It adds confusion to the code. I think it is a good point, but
I'd draw the when-to-use-it line a bit less radically.
F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden