[Biococoa-dev] Design question

Jim Balhoff james.balhoff at duke.edu
Thu Aug 5 23:42:27 EDT 2004


Hey Alex,

On Aug 5, 2004, at 6:00 PM, Alexander Griekspoor wrote:

> Indeed John,
> Those methods should do perfect in that way, savability should be a  
> later concern as we further setup the foundation, we can always make  
> it work with those objects by then...
> Alex
>
> By the way, I'm pretty sure that you can put NSRanges in arrays and  
> dictionaries natively already (without converting them to  
> NSNumbers/Values first), at least I believe I've done that in  
> EnzymeX....
>

Unfortunately, NSRange is a C struct and not an Objective-C object, so  
it can't go into collections on its own.  I find it kind of confusing,  
but I guess it improves performance.

<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ 
ObjC_classic/TypesAndConstants/FoundationTypes.html#//apple_ref/c/tdef/ 
NSRange>

<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ 
ObjC_classic/Classes/NSValue.html#//apple_ref/occ/cl/NSValue>

- Jim
____________________________________________
James P. Balhoff
Dept. of Biology
Duke University
Durham, NC 27708-0338
USA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2373 bytes
Desc: not available
URL: <http://www.bioinformatics.org/pipermail/biococoa-dev/attachments/20040805/4714f50d/attachment.bin>


More information about the Biococoa-dev mailing list