• 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: assignment from incompatible pointer type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >assignment from incompatible pointer type (From: Jim Graham <email@hidden>)

  • Prev by Date: assignment from incompatible pointer type
  • Next by Date: Carbon vs Cocoa arguments
  • Previous by thread: assignment from incompatible pointer type
  • Next by thread: Carbon vs Cocoa arguments
  • Index(es):
    • Date
    • Thread