[Biococoa-dev] NSValue addition

Koen van der Drift kvddrift at earthlink.net
Tue Sep 28 18:31:09 EDT 2004


On Sep 28, 2004, at 12:52 PM, John Timmer wrote:

> Just to inform everyone:
>
> I've added a file to the Utils section that adds a few methods as a 
> category
> to NSValue (I wrote it a little while ago, but it got lost in the 
> shuffle).
> Since a lot of what we do will use NSRanges and they can be stored in 
> arrays
> as NSValues, I added a method that assumes NSRange values, and allows
> sorting of the array.
>
> This may be the easiest way to find things like "the longest" - put all
> possible ranges into the array, and then sort it.  It's how I'm 
> handling
> some of the ORF methods.

John,

Looks good, although I agree with Alex to put such functionality in 
wrappers. Just a small comment, would you mind renaming it to something 
that starts with BCUtil... ?


thanks,


- Koen.




More information about the Biococoa-dev mailing list