Tuesday, August 26, 2008
PureMVC Gotcha
Don't send notifications that you're expecting a response to in your mediator's constructor (or during construction). Instead, override the onRegister() function and call them there. Your Mediator won't receive notifications it's interested in until after the registration process is finished. Seems pretty obvious, but you can loose track real quick of what's going on in the background when you're using a system like PureMVC that just seems to work.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment