// WebScriptObject+JSArrayAccessors.h
// 
// by James G. Speth <speth@end.com>
// http://end.com/speth
//
// a workaround for the problem illustrated by:
// http://www.ditchnet.org/wp/2005/10/21/report-a-bug-friday/
//
// use a category on WebScriptObject to allow access to the javascript array
// that it proxies for (if one exists).  access is through the typical NSArray
// access methods, or you can use NSArray arrayWithArray: to convert the whole
// thing.

#import <WebKit/WebScriptObject.h>
#import <Foundation/NSRange.h>
#import <Foundation/NSArray.h>

@interface WebScriptObject (JSArrayAccessors)

- (unsigned)count;
- (id)objectAtIndex:(unsigned)index;
- (void)getObjects:(id *)aBuffer range:(NSRange)aRange;

@end
