• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Array of NSRange
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Array of NSRange
      • From: Andy Lee <email@hidden>
    • Re: Array of NSRange
      • From: Nicholas Riley <email@hidden>
  • Prev by Date: Re: Linking Mach-O and AIX binaries
  • Next by Date: Re: Array of NSRange
  • Previous by thread: Re: Application architecture question
  • Next by thread: Re: Array of NSRange
  • Index(es):
    • Date
    • Thread