[TOC] [Prev] [Next]

ITKJSPropertyEnumerator

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.

Instance Methods

getNextJSProperty:

-(BOOL)getJSNextProperty:(JSVal *)slotp

If there is another property to enumerate, place its identifier into slotp and return YES. Otherwise return NO.



[TOC] [Prev] [Next]

Copyright © 1999, AAA+ Software. All rights reserved.