[Biococoa-dev] NSData

Koen van der Drift kvddrift at earthlink.net
Tue Jul 19 22:08:27 EDT 2005


On Jul 19, 2005, at 7:25 PM, Charles Parnot wrote:

>
> On Jul 19, 2005, at 3:57 PM, Koen van der Drift wrote:
>
>
>> 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.
>>
>
> The symbolChar should just be one char, not a buffer of one char.
> The ivar should be:
>     ...
>     char symbolChar;

I think you meant:

unsigned char    symbolChar;

Can we then in the initWithChar method just use:

symbolChar = aChar;  ?


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


OK, here we go :)

I am now looking into updating the translation code. This is not my  
field, so I hope I do it right, and therefore ask here before I  
really screw up.

1. Should we keep the BCSequenceCodon subclass?

2. The translation code now uses symbolArrays. Should we keep this,  
or do we need to rewrite these classes so that they use the char  
array in NSData?



>  One nice thing with CVS is you can see what changed, and you can  
> always revert back to an old state. So I guess you should use CVS?  
> If some source files don't compile, you can always temporarily  
> uncheck the 'Target' box so they are not included in the build.


I rather not commit them to CVS until the classes are more finalized.  
But if no-one objects, I will commit the updated files. Or I can use  
a CVS branch. Anyone knows how to use branches within Xcode?

cheers,

- Koen.



More information about the Biococoa-dev mailing list