[Biococoa-dev] Using an untyped class sequence

Charles Parnot charles.parnot at gmail.com
Wed Jul 6 01:05:58 EDT 2005


On Jul 5, 2005, at 5:10 PM, Koen van der Drift wrote:


>
> On Jul 5, 2005, at 1:43 PM, John Timmer wrote:
>
>
>
>>  and then write the
>> bridging code to generate object representations on the fly.
>>
>>
>
> I think we already have that:
>
> + (id) symbolForChar: (unichar)aSymbol
>
> cheers,
>
> - Koen.
>

Exactly! In fact, even better is this method from BCSymbolSet:
- (BCSymbol *)symbolForChar:(unichar)aChar

This is another nice thing with the symbolSet. It bridges chars and  
BCSymbol. The method returns nil if the symbol is not in the set  
(like 'member:' for NSSet, or 'objectForKey:' for NSDictionary). The  
BCSequence can use the BCSymbolSet to filter the right chars.

charles


--
Xgrid-at-Stanford
Help science move fast forward:
http://cmgm.stanford.edu/~cparnot/xgrid-stanford

Charles Parnot
charles.parnot at gmail.com







More information about the Biococoa-dev mailing list