[Biococoa-dev] translation demo

Koen van der Drift kvddrift at earthlink.net
Sat Sep 25 20:46:23 EDT 2004


On Sep 25, 2004, at 8:22 PM, Koen van der Drift wrote:

> Hi,
>
> Is anyone able to build the translation demo? I think it has to do 
> with the line:
>
> #import <BioCocoa/BCFoundation.h>
>


To reply to myself, I replaced that line with:

#import "../../BCFoundation/BCGeneticCode/BCCodon.h"
#import "../../BCFoundation/BCSequence/BCSequenceDNA.h"
#import "../../BCFoundation/BCSequence/BCSequenceProtein.h"
#import "../../BCFoundation/BCTools/BCTranslation/BCToolTranslatorDNA.h"
#import "../../BCFoundation/BCUtils/BCUtilStrings.h"

But still get 2 warnings:

theController.m:54: cannot find method 
`+translateDNASequence:usingGeneticCode:'; return type `id' assumed
theController.m:54: `BCToolTranslatorDNA' may not respond to 
`+translateDNASequence:usingGeneticCode:'

I don;t understand that because BCToolTranslatorDNA.h is in the lines 
above.


If I start the app anyway, enter a sequence and click the button, I get 
this error:

2004-09-25 20:40:07.478 Translation[1316] Attempt to mutate immutable 
NSString with replaceOccurrencesOfString:withString:options:range:

Which happens in BCGeneticCode.m, line 181

Although the NSString in question (aKey) is an NSMutableString, I think 
it points to an NSString, so maybe that's why the error occurs.


Any ideas?

thanks,

- Koen.




More information about the Biococoa-dev mailing list