[Biococoa-dev] More on BCSymbolSets

Koen van der Drift kvddrift at earthlink.net
Sun Mar 6 07:24:47 EST 2005


On Mar 6, 2005, at 1:27 AM, Charles PARNOT wrote:

> OK, that works well for BCSequence, but how about that code:
>
> BCSequenceDNA *dna=[BCSequenceDNA initWithString:@"ATGTTTGAT" 
> symbolSet:proteinSymbolSet];

My understanding of the whole new BCSequence construction, is that the 
user only needs to use BCSequence. The framework will deal with its 
subclasses if needed. So in that case, the above would change to:

BCSequence *dna=[BCSequence initWithString:@"ATGTTTGAT" 
symbolSet:proteinSymbolSet];

which returns a protein object, named 'dna'.


Can we prevent the user making such ambiguous situations, maybe by 
making the BCSequence subclasses private? Or will that break things?

- Koen.




More information about the Biococoa-dev mailing list