FROM : Clark S. Cox III
DATE : Fri Nov 22 16:38:52 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, Nov 22, 2002, at 10:22 US/Eastern, Jacob Engstrand wrote:
> Hi All,
>
> NSString *before = @"ab";
> NSLog(@"before: '%@'", before);
> NSString *after = [before stringByTrimmingCharactersInSet:
> [NSCharacterSet whitespaceCharacterSet]];
> NSLog(@"after: '%@'", after);
>
> The above piece of code outputs:
>
> before: 'ab'
> after: 'ab'
>
> Which is ok, of course. But changing the first line to:
>
> NSString *before = @"a";
>
> gives the following output:
>
> before: 'a'
> after: ''
>
> What gives? Is it me? Am I loosing it? Or is this some bug that
> everybody knows about but I?
I came across that a couple of days ago as well. I filed a bug report
on Wednesday, it's problem ID: 3106311.
- --
http://homepage.mac.com/clarkcox3/
<email_removed>
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iEYEARECAAYFAj3eT5IACgkQd6STocYT1xXpUgCeIizkCVatKldUjXuqOevM+SWf
eDMAn3L1seDDM35T31qLAxDsxoy1D6WV
=NT/k
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Fri Nov 22 16:38:52 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, Nov 22, 2002, at 10:22 US/Eastern, Jacob Engstrand wrote:
> Hi All,
>
> NSString *before = @"ab";
> NSLog(@"before: '%@'", before);
> NSString *after = [before stringByTrimmingCharactersInSet:
> [NSCharacterSet whitespaceCharacterSet]];
> NSLog(@"after: '%@'", after);
>
> The above piece of code outputs:
>
> before: 'ab'
> after: 'ab'
>
> Which is ok, of course. But changing the first line to:
>
> NSString *before = @"a";
>
> gives the following output:
>
> before: 'a'
> after: ''
>
> What gives? Is it me? Am I loosing it? Or is this some bug that
> everybody knows about but I?
I came across that a couple of days ago as well. I filed a bug report
on Wednesday, it's problem ID: 3106311.
- --
http://homepage.mac.com/clarkcox3/
<email_removed>
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iEYEARECAAYFAj3eT5IACgkQd6STocYT1xXpUgCeIizkCVatKldUjXuqOevM+SWf
eDMAn3L1seDDM35T31qLAxDsxoy1D6WV
=NT/k
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Jacob Engstrand | Nov 22, 16:22 | |
| Clark S. Cox III | Nov 22, 16:38 |






Cocoa mail archive

