Re: (no subject)
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>) |