• 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
Re: Efficiently getting characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Efficiently getting characters


  • Subject: Re: Efficiently getting characters
  • From: Antonio Nunes <email@hidden>
  • Date: Wed, 3 May 2006 10:31:03 +0100

On 3 May 2006, at 00:01, Douglas Davidson wrote:

This note is intended for those who are writing subclasses of NSString. If you are not writing a subclass of NSString, you should ignore it. If you are not writing a subclass of NSString, you are not using the abstract implementation of getCharacters:range:. Instead, you are using an efficient implementation supplied by one of the standard concrete subclasses.

Maybe then it would gain clarity by being be rephrased thus:

The abstract implementation of this method uses characterAtIndex: repeatedly,
correctly extracting the characters, though very inefficiently. If you are writing a subclass you should
override it to provide a fast implementation.

António _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Efficiently getting characters (From: John Nairn <email@hidden>)
 >Re: Efficiently getting characters (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Newbe Question: Searching Address Book
  • Next by Date: Re: Updating NSTableView after edit
  • Previous by thread: Re: Efficiently getting characters
  • Next by thread: [SOLVED] Re: Problems building a Universal Binary that works on Panther and Tiger
  • Index(es):
    • Date
    • Thread