Le 7 f=E9vr. 07 =E0 16:26, John Paz a =E9crit :
>
> hi F-script Team,
>
> Thanks for creating a great piece of software. I'm new to f-script =20=
> but am finding it a very easy way to experiment with Cocoa and =20
> climb its steep learning curve. I've been able to send messages to =20=
> all members of an array, but I've tried doing the same with =20
> dictionaries and wasn't able to get it to work. The manual didn't =20
> indicate whether it should or not AFAIK. Is it possible to send =20
> messages to all members of collections such as dictionaries or =20
> sets, or should this not work? Is this a design choice
Hi John,
Such capabilities may find their way in a future version of F-Script. =20=
In the meantime, it is easy to iterate over the elements of a set or =20
a dictionary by putting them into an array (Cocoa provides methods to =20=
do that on the fly). Examples:
"Send msg to the elements of mySet"
mySet allObjects @msg
"Send msg to the values of myDictionary"
myDictionary allValues @msg
"Send msg to the keys of myDictionary"
myDictionary allKeys @msg
Does it solve your problem?
Philippe=
|