[Biococoa-dev] NSValue addition
Alexander Griekspoor
mek at mekentosj.com
Tue Sep 28 14:42:49 EDT 2004
Although certainly very handy, the way how I usually do this is to have
comparison objects in the wrapper objects we use. For instance in my
enzymeX object that represents a cut in the DNA, I have a method
sortOnCutPosition. Next, you can simply do [theArrayWithCutObjects
sortUsingSelector: @selector(sortOnCutPosition:)]; That works
beautifully, and again shows how useful this decorator/wrapper objects
are we discussed earlier.... Nevertheless, nice to see these new
possibilities added!
Cheers,
Alex
Op 28-sep-04 om 18:52 heeft John Timmer het volgende geschreven:
> 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.
>
> Cheers,
>
> JT
>
> _______________________________________________
> This mind intentionally left blank
>
>
> _______________________________________________
> Biococoa-dev mailing list
> Biococoa-dev at bioinformatics.org
> https://bioinformatics.org/mailman/listinfo/biococoa-dev
>
>
*********************************************************
** Alexander Griekspoor **
*********************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
AIM: mekentosj at mac.com
E-mail: a.griekspoor at nki.nl
Web: http://www.mekentosj.com
iRNAi, do you?
http://www.mekentosj.com/irnai
*********************************************************
*********************************************************
** Alexander Griekspoor **
*********************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
AIM: mekentosj at mac.com
E-mail: a.griekspoor at nki.nl
Web: http://www.mekentosj.com
Claiming that the Macintosh is inferior to Windows
because most people use Windows, is like saying
that all other restaurants serve food that is
inferior to McDonalds
*********************************************************
More information about the Biococoa-dev
mailing list