Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OK to use setCharactersToBeSkipped:nil ?



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.

References: 
 >OK to use setCharactersToBeSkipped:nil ? (From: Matt Gough <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.