Array of NSRange
Array of NSRange
- Subject: Array of NSRange
- From: Nicola Vitacolonna <email@hidden>
- Date: Wed, 10 Jul 2002 10:34:50 +0200
Just a silly question, about which I would like to know your opinion.
I need a data structure with an array of NSRange. What is the best way
to implement it in Cocoa? In Java there is a NSRange class, but in
Objective-C there are only types and functions. So, to use an NSArray I
should wrap my own custom class around the NSRange type. Another
possibility is to use plain C arrays, but I would miss all the
facilities of NSArrays...
Why doesn't Cocoa have an NSRange class? I suppose it is for efficiency,
but then, how could I efficiently implement an array of NSRange? Is
plain C the only solution?
Thanks for paying attention,
Nicola Vitacolonna
** ** Get my PGP public key at:
** * ** * www.dimi.uniud.it/~vitacolo
** * ** * or finger email@hidden
** * Universita' degli Studi di Udine
* ***icola Vitacolonna
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.