[Biococoa-dev] Design question
Alexander Griekspoor
mek at mekentosj.com
Fri Aug 6 02:28:28 EDT 2004
You're right Jim,
You indeed need [NSValue valueWithPoint:aRange] to do this. I must
have been mistaken, but I'm absolutely sure that not to long ago I had
an incidence where I thought "hey, can you do this directly?!", clearly
that must have been something else then...
Alex
Op 6-aug-04 om 5:42 heeft Jim Balhoff het volgende geschreven:
> 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
>
>
*********************************************************
** 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
Windows is a 32-bit patch to a 16-bit shell for an 8-bit
operating system, written for a 4-bit processor by a 2-
bit company without 1 bit of sense.
*********************************************************
*********************************************************
** 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
4Peaks - For Peaks, Four Peaks.
2004 Winner of the Apple Design Awards
Best Mac OS X Student Product
http://www.mekentosj.com/4peaks
*********************************************************
More information about the Biococoa-dev
mailing list