[F-Script-talk] Array question
Brought to you by:
pmougin
From: dkb <dk...@gv...> - 2004-09-22 20:28:12
|
I currently have several arrays of doubles in an obj-c class that I would like to access with F-Script. Most of the arrays have < 20 elements but a couple have 500 elements in them. I've added a simple method - (Float64)salary:(unsigned)index; to my class for one of the arrays which works but is this the best way to do this? Wouldn't there be a lot of overhead if I wanted to get the max salary contained in this array since I would have to build the array within F-Script by repeatedly sending the salary message with every index value? Would it be better to convert all the C arrays to NSArrays for easier access by F-Script? Thanks for any input. |