Re: assignment from incompatible pointer type
Re: assignment from incompatible pointer type
- Subject: Re: assignment from incompatible pointer type
- From: "Clark S. Cox III" <email@hidden>
- Date: Tue, 8 Oct 2002 17:23:25 -0400
-----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@hidden
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@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.