• 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: stringByTrimmingCharactersInSet: Bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stringByTrimmingCharactersInSet: Bug


  • Subject: Re: stringByTrimmingCharactersInSet: Bug
  • From: Wesley Miaw <email@hidden>
  • Date: Thu, 3 Apr 2003 12:05:31 -0500

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Project Builder is listed as December 2002 (v2.1).
Apple Computer, Inc. GCC version 1175, based on gcc version 3.1 20020420 (prerelease)
I installed off the Jaguar 10.2.3 developer CD.

Just found Technical Q&A QA1202 (dated Oct 9 2002): This bug should be fixed in the next major release of Mac OS X.

On Thursday, April 3, 2003, at 07:28 AM, Theodore Petrosky wrote:

I seem to remember that this was a known bug in
stringByTrimmingCharacterInSet. It was listed to be
fixed in the December 2002 release. What release are
you using?

Ted

--- Wesley Miaw <email@hidden> wrote:

Has anyone else encountered this bug with the NSString stringByTrimmingCharactersInSet:? If I attempt to trim whitespaceCharacterSet off of a string of one character (e.g. 'a'), prefixed by zero or more whitespace characters, and followed by no whitespace characters, then the empty string is returned instead of the one character. Appending whitespace to this string before calling stringByTrimmingCharactersInSet: fixes this problem.
- --
Wesley Miaw, Wesley Miaw Consulting
http://www.wesman.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iD8DBQE+jGneQv4agqRAk2kRAts+AJ9UZ8X3WnJXKqsIapT0uAxeh3mvaQCfdYLr
lKNjq+YaxSjioMr5DbMKmFg=
=P9b6
-----END PGP SIGNATURE-----
_______________________________________________
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: 
 >Re: stringByTrimmingCharactersInSet: Bug (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: Getting real NSControl dimensions
  • Next by Date: Re: takeValue:forKey and BOOL
  • Previous by thread: Re: stringByTrimmingCharactersInSet: Bug
  • Next by thread: Re: stringByTrimmingCharactersInSet: Bug
  • Index(es):
    • Date
    • Thread