Hi Grimmwerks

If I've a bunch of objects, I can do a call the them with a handler,
correct? And the ones with the handler will respond/do it?

yes, but with one caveat : it looks like (I'm not sure about it, I should check it) that Director parse your list by incrementing the index. So that if you're doing a
call(#someHandler, lSomeList)
and the first objects in the beginning of the list modify the list (remove themsleves, add other items not at the end, ...) some objects won't receive the event.


This said, I always use call(#handler, listOfObject) ;�)
I event prefer this to standard direct method calls, as
tResult = call(#mGetResult, [oOneObject])
won't throw out an 'handler not found' error if the #mGetREsult handler isn't found in oOneObject, or even if oOneObject isn't an instance.
Whereas
tResult = call(#mGetResult, [oOneObject])
Or
tResult = oOneObject.mGetResult()
Will throw the script error out.
After the call, you just have to test (voidP()) to know if everything goes fine or not.


HTH,
s�b
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to