Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Questions about Indexcards example and registering proxies  (Read 7003 times)
creynders
Jr. Member
**
Posts: 18


View Profile Email
« on: April 02, 2008, 12:30:26 »

If I understand it correctly then commands are registered to one specific notification.
When I look at the commands in the Indexcards example, 3 of them check the notification name to perform different actions.
I don't quite understand how this works. I've searched through the code and found all of the commands to be registered to one notification, so how is this possible?
Do they still receive the other notifications, even though they're only registered to one specific notification? And if that's the case, then why register them to one notification at all?

Another question I had is concerning registering proxies. At the moment I have deferred instantiation of mediators, but all proxies are registered at startup, just because I didn't know where else to register them. Am I correct in assuming that they could be registered in a different command? And would it be ok if they are registered in mediators?

Probably these are questions with obvious answers, but I'm having a hard time figuring out what is good practice and what not.

BTW Cliff, congratulations on a magnificent job. I'm really enthousiastic about this framework, even though I don't fully grasp it yet.
Logged
lingie
Newbie
*
Posts: 5


View Profile Email
« Reply #1 on: July 08, 2008, 03:07:50 »

Just wondering if there was a reply to this post...?
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #2 on: July 11, 2008, 05:57:06 »

Sorry, I'm replying from my phone and can't see the index cards code right now. I'll have to return to that.

But for registering Proxies, yes it can happen elsewhere/when. Just make sure that anything that may expect them to be available either doesn't ask for them until they are there, or can detect and cope with it if they're not there.

-=Cliff>
Logged
Pages: [1]
Print