FROM : Clark S. Cox III
DATE : Tue Oct 08 23:23:25 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, Oct 8, 2002, at 16:49 US/Eastern, Jim Graham wrote:
> If I run this code the string is converted to uppercase but the
> compiler
> always gives the above error. Why?
>
> NSMutableString *tempString= [[NSMutableString
> alloc]initWithString:@"Hello
> World"];
> tempString = [tempString uppercaseString];
>
uppercaseString returns an (NSString*), not an (NSMutableString*).
Try: [tempString setString: [tempString uppercaseString]];
- --
http://homepage.mac.com/clarkcox3/
<email_removed>
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iEYEARECAAYFAj2jTNIACgkQd6STocYT1xXn6ACeOm9s/saqApL4QiDNNGG4FuQN
xGkAmwfJOOymuu0ZJHqU3v/Ro0LA2uz9
=aob1
-----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 : Tue Oct 08 23:23:25 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, Oct 8, 2002, at 16:49 US/Eastern, Jim Graham wrote:
> If I run this code the string is converted to uppercase but the
> compiler
> always gives the above error. Why?
>
> NSMutableString *tempString= [[NSMutableString
> alloc]initWithString:@"Hello
> World"];
> tempString = [tempString uppercaseString];
>
uppercaseString returns an (NSString*), not an (NSMutableString*).
Try: [tempString setString: [tempString uppercaseString]];
- --
http://homepage.mac.com/clarkcox3/
<email_removed>
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)
iEYEARECAAYFAj2jTNIACgkQd6STocYT1xXn6ACeOm9s/saqApL4QiDNNGG4FuQN
xGkAmwfJOOymuu0ZJHqU3v/Ro0LA2uz9
=aob1
-----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 |
|---|---|---|
| Jim Graham | Oct 8, 22:49 | |
| Clark S. Cox III | Oct 8, 23:23 |






Cocoa mail archive

