• 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: (no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (no subject)


  • Subject: Re: (no subject)
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 3 Oct 2009 11:46:58 -0700


On Oct 3, 2009, at 4:32 AM, Jos Timanta Tarigan wrote:

im trying to return a string without making any additional string variable before. so in a method that return NSString*, i only put this line. The first [self name] return a NSString* so its ok. but [self angleInDegrees] returns a float and it return an error when i try to do it with this statement:

return @"Im a %@", [self name], " with angles %d", [self angleInDegrees];

No offense, but you can't just invent your own syntax and expect the compiler to understand it. You really need to read the introductory Cocoa documentation; there's a whole lot that comes with Xcode. Or there are many Cocoa books you can buy.


—Jens _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >(no subject) (From: Jos Timanta Tarigan <email@hidden>)

  • Prev by Date: ostringstream problem with Xcode 3.2
  • Next by Date: Re: ostringstream problem with Xcode 3.2
  • Previous by thread: Re: (no subject)
  • Next by thread: Documentation sets don't seem to be available
  • Index(es):
    • Date
    • Thread