I can access `dict` just fine. But if there is an NSArray of NSStrings
inside that dictionary I run into some problems.
result = dict.myArrayOfStrings.indexOf("myString")
The array of strings returned are boxed(unboxed?) NSString objects. So
I can't compare the javascript string to the strings in
dict.arrayOfString without create a new array and calling toValue() on
each element. This isn't that big of a deal, but I seem to be calling
toValue() a lot.
Is there a method that recessively boxes values in containers
(NSArray and NSDictionary)? If not, any tips on how I could go about
writing something like that?
Patrick Geiller
unread,
Nov 6, 2011, 5:50:22 AM11/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message as abuse
Sign in to report message as abuse
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsc...@googlegroups.com
> Is there a method that recessively boxes values in containers > (NSArray and NSDictionary)? If not, any tips on how I could go about > writing something like that?
I've added .toJS() to convert ObjC values to Javascript.