• 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: OK to use setCharactersToBeSkipped:nil ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OK to use setCharactersToBeSkipped:nil ?


  • Subject: Re: OK to use setCharactersToBeSkipped:nil ?
  • From: Mason Mark <email@hidden>
  • Date: Fri, 30 Jan 2004 07:04:51 -0800

Yes, that is correct.

There is some default value for characters to be skipped ([NSCharacterSet whitespaceCharacterSet] I think), but your line of code is common and will work as you intend.

--
Mason Mark
Five Speed Software, Inc.


On Jan 30, 2004, at 5:20 AM, Matt Gough wrote:

The documentation doesn't explicitly state whether calling:

[someScanner setCharactersToBeSkipped:nil]

is a legal way of having no characters that are skipped.

As far as I can tell it behaves the same as using an empty characterSet, but also seems to make some scanning operations faster.

Can someone please confirm that if I use nil, that I won't get bitten in some future system release.

Thanks

Matt Gough
_______________________________________________
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: OK to use setCharactersToBeSkipped:nil ?
      • From: Marco Scheurer <email@hidden>
References: 
 >OK to use setCharactersToBeSkipped:nil ? (From: Matt Gough <email@hidden>)

  • Prev by Date: Re: NSTypesetter and smart quotes
  • Next by Date: Re: Designing for multitudinous objects
  • Previous by thread: OK to use setCharactersToBeSkipped:nil ?
  • Next by thread: Re: OK to use setCharactersToBeSkipped:nil ?
  • Index(es):
    • Date
    • Thread