NSArray length property

Discuss the JavaScriptCore Objective-C wrapper/bridge
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
ddribin
Posts: 19
Joined: Mon May 12, 2008 9:21 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

NSArray length property

Post by ddribin » Mon May 12, 2008 9:26 am

Hello,

First off, lemme just say that JSKit is fantastic. I've always found it a bit disappointing that WebScriptObject is only available with a WebView, even now that we have JavaScriptCore. So thanks for writing this! It's something I've wanted, but haven't really had time to work on.

I was playing around, and I noticed that NSArray's passed into JS don't respond to the "length" property. I've got a patch that fixes this, if you are interested.

Thanks,

-Dave

Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Who is online

Users browsing this forum: No registered users and 2 guests