[Biococoa-dev] Design question

Koen van der Drift kvddrift at earthlink.net
Fri Aug 6 19:16:33 EDT 2004

On Aug 6, 2004, at 6:37 PM, John Timmer wrote:

> I had sent out an RTF file with some ideas on how to construct the 
> class -
> if you hadn't gotten it, let me know and I'll resend it.  It hadn't
> triggered any discussion yet, but I'd assumed that was because it was 
> all
> ideas and no code yet.

Yes I have seen that. I meant the recent messages from yesterday.

>> Additionally this class could have an NSMutableArray member consisting
>> of objects that represent each single base, amino acid. Whenever the
>> NSString is edited, the NSMutableArray is updated, and vice versa.
> I'm curious as to what this adds that a string doesn't.

You can access/manipulate more information about each base/amino acid. 
If you just have a letter, you don't have that info in the object, only 
an identifier.  But I agree that it could be very processor intensive 
for very long sequences.

> Relevant to this, I'm planning on using a few enumerations (ie -
> BCDNASequence, BCProteinSequence, BCRNASequence), but haven't done so 
> in
> ObjC before.  Where do they get defined, and does anybody have some 
> code
> they're willing to share with me to make sure I don't screw that up?

Why not use an NSArray, etc? They have built-in enumerators.  Also look 
at the NSScanner class to quickly find a character or string in another 

- Koen.

More information about the Biococoa-dev mailing list