Declared in: itkJavaScript/ITKJSProperties.h
The ITKJSPropertyEnumerator protocol is used for defining the behaviour of loops like for (i in object)
where object
is an Objective-C object. The object's jsPropertyEnumerator
method should return an ITKJSPropertyEnumerator conforming object that provides the values that the loop variable takes on.
The itkJavaScript framework already provides an implementation of this protocol for the NSEnumerator class.
getJSNextProperty:
(JSVal *)slotpIf there is another property to enumerate, place its identifier into slotp and return YES. Otherwise return NO.