PureMVC Architects Lounge

PureMVC Manifold => MultiCore Version => Topic started by: deltajam on March 06, 2009, 08:01:47



Title: Trying to understand multicore
Post by: deltajam on March 06, 2009, 08:01:47
Ok, so I've got my module loaded into my application.  Check.  Now I would like to understand the initializeNotifier method and onRegister method a little better.  What is the difference between the two? When would I use one and not the other?  Currently, I have a mediator that registers a proxy, and then tried to retrieve it shortly after ... but it retrieves null.

It's driving me nuts.  I've made break points ... debugged, etc.  I just can't figure out why my proxy retrieves null.  I've seen other posts like this ... but not much from the multicore arena.

 Thanks for any help!


Title: Re: Trying to understand multicore
Post by: deltajam on March 06, 2009, 06:13:36
I'm just this question drives the admins mad.  I just figured it out.  It was a typo. Awful eh?  I was extending my proxy class, and I wasn't passing the NAME variable through properly.  Man alive.  Thank you for coping with me.


Title: Re: Trying to understand multicore
Post by: puremvc on March 07, 2009, 06:42:34
No problem, typos get us all, and it always seems like it has to be something major :)

On the initializeNotifier vs onRegister, the former is merely the first opportunity for you to make calls to your facade. Its after construction but before registration.
The latter is later still and is right after registration, so you can be sure that if your facade manipulations result in the Proxy or Mediator being retrieved (or notified if its a mediator) by some other actor that it will be available.

Generally you don't need to use initializeNotifier, its just an earlier hook than onRegister.

-=Cliff>