[Biococoa-dev] NSData

Koen van der Drift kvddrift at earthlink.net
Tue Jul 19 18:57:59 EDT 2005


Hi,

During the conversion to NSData, I ran into a couple of questions.

1. Should the symbolChar in BCSymbol also be an NSData ivar? If not,  
I guess we need to use malloc/free etc.

2. Why are we using utf8 and not ascii encoding? utf8 seems to be for  
unicode while we only need single characters.

3. I am still not sire if we should stick with the symbolString in  
BCSymbol. Any opinions on that one?

4. Slightly unrelated, but I'll ask it here anyway because I notced  
it while implementing the NSData. In the initBases method in  
BCNucleotideDNA/RNA I see many lines such as:

         [baseDefinitions removeObjectForKey: @"A"];

I am not sure if I understand what the idea behind the removal of the  
key-value pair is.


I will probably find more issues and post them here :)



BTW, has anyone had a chance to look at the code I posted at http:// 
home.earthlink.net/~kvddrift/biococoa/ ?  Some feedback would be  
nice, so I can continue making changes to my local project and then  
commit them to cvs eventually.  Do you guys think I am on the right  
track, let me know what you think.


cheers,

- Koen.






More information about the Biococoa-dev mailing list