opensubscriber
   Find in this group all groups
 
Unknown more information…

w : webkitsdk-dev@lists.apple.com 21 December 2005 • 2:58AM -0500

Enumerator
by Michael Hanna

REPLY TO AUTHOR
 
REPLY TO GROUP




I've learned that Enumerator is not present in Safari's  
implementation of JavaScript. Is there a way to fake it?

I have to implement something like this:

for (var objEnum = new Enumerator(axmlRegExp); !objEnum.atEnd();  
objEnum.moveNext())
{
// ...do stuff to objEnum
}

I was thinking adding a definition for a JS Object to the DOM, and in  
that function/JS class declaration call the objective-c world and  
make an NSEnumerator there, and 'shadow' objEnum.moveNext() and use  
(object != [enumerator nextObject]) for objEnum.atEnd().. Just ideas.  
Is this even possible at all? Any possible caveats?

Michael

--
Michael Hanna
mhanna@atim...
iChat: michaelkhanna(AIM)



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (Webkitsdk-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.