[Biococoa-dev] mass calculator bug

Koen van der Drift kvddrift at earthlink.net
Sat Aug 28 09:51:22 EDT 2004


Running into another problem. I implemented the NSCopy code for 
BCSequence, and try to get the mass calculation to work. I cannot get a 
reference to a BCSymbol to get the masses. This is what I do:

	NSEnumerator			*enumerator;
     	BCNucleotideDNA		*aSymbol;
	enumerator = [[sequence sequenceArray] objectEnumerator];

	while ( aSymbol = [enumerator nextObject] )
		total += [aSymbol monoisotopicMass];		<-- this crashes

I guess don't understand how to use the singleton/flyweight pattern yet.

Any ideas?


- Koen.

More information about the Biococoa-dev mailing list